summary refs log tree commit diff
path: root/pkgs/os-specific/linux/keyutils/conf-symlink.patch
diff options
context:
space:
mode:
authorKai Wohlfahrt <kai.wohlfahrt@gmail.com>2019-11-27 21:00:10 +0000
committerKai Wohlfahrt <kai.wohlfahrt@gmail.com>2019-12-12 15:42:44 +0000
commite0b9b5f7a69baf79e81872a21e3ab230e398e469 (patch)
tree2f7af265dc81b77690e77b62d9879b02e6b95193 /pkgs/os-specific/linux/keyutils/conf-symlink.patch
parentb1c10bc8b225beec0752f1b96acfa38a5f95cc92 (diff)
downloadnixpkgs-e0b9b5f7a69baf79e81872a21e3ab230e398e469.tar
nixpkgs-e0b9b5f7a69baf79e81872a21e3ab230e398e469.tar.gz
nixpkgs-e0b9b5f7a69baf79e81872a21e3ab230e398e469.tar.bz2
nixpkgs-e0b9b5f7a69baf79e81872a21e3ab230e398e469.tar.lz
nixpkgs-e0b9b5f7a69baf79e81872a21e3ab230e398e469.tar.xz
nixpkgs-e0b9b5f7a69baf79e81872a21e3ab230e398e469.tar.zst
nixpkgs-e0b9b5f7a69baf79e81872a21e3ab230e398e469.zip
keyutils: patch to allow symlinks in config dir
Diffstat (limited to 'pkgs/os-specific/linux/keyutils/conf-symlink.patch')
-rw-r--r--pkgs/os-specific/linux/keyutils/conf-symlink.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/keyutils/conf-symlink.patch b/pkgs/os-specific/linux/keyutils/conf-symlink.patch
new file mode 100644
index 00000000000..02762e857a8
--- /dev/null
+++ b/pkgs/os-specific/linux/keyutils/conf-symlink.patch
@@ -0,0 +1,13 @@
+diff --git a/request-key.c b/request-key.c
+index bf47c0a..105fee8 100644
+--- a/request-key.c
++++ b/request-key.c
+@@ -313,7 +313,7 @@ static void scan_conf_dir(struct parameters *params, const char *confdir)
+ 	while ((d = readdir(dir))) {
+ 		if (d->d_name[0] == '.')
+ 			continue;
+-		if (d->d_type != DT_UNKNOWN && d->d_type != DT_REG)
++		if (d->d_type != DT_UNKNOWN && d->d_type != DT_REG && d->d_type != DT_LNK)
+ 			continue;
+ 		l = strlen(d->d_name);
+ 		if (l < 5)