mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 20:39:04 +02:00
keyutils: patch to allow symlinks in config dir
This commit is contained in:
parent
b1c10bc8b2
commit
e0b9b5f7a6
13
pkgs/os-specific/linux/keyutils/conf-symlink.patch
Normal file
13
pkgs/os-specific/linux/keyutils/conf-symlink.patch
Normal file
|
@ -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)
|
|
@ -15,6 +15,7 @@ stdenv.mkDerivation rec {
|
|||
url = "https://salsa.debian.org/debian/keyutils/raw/4cecffcb8e2a2aa4ef41777ed40e4e4bcfb2e5bf/debian/patches/Make-build-reproducible.patch";
|
||||
sha256 = "0wnvbjfrbk7rghd032z684l7vk7mhy3bd41zvhkrhgp3cd5id0bm";
|
||||
})
|
||||
./conf-symlink.patch
|
||||
];
|
||||
|
||||
BUILDDATE = "1970-01-01";
|
||||
|
|
Loading…
Reference in a new issue