diff options
author | 2022-02-02 15:45:35 -0500 | |
---|---|---|
committer | 2022-02-02 15:45:35 -0500 | |
commit | 7635f72dd144a6d361b9f5c874a47d651cb54837 (patch) | |
tree | 2f716524b765356918f6a22434edcd8b3cdbb0eb /src | |
parent | tentative fix for private-etc in NixOS - issue 4887 (diff) | |
download | firejail-7635f72dd144a6d361b9f5c874a47d651cb54837.tar.gz firejail-7635f72dd144a6d361b9f5c874a47d651cb54837.tar.zst firejail-7635f72dd144a6d361b9f5c874a47d651cb54837.zip |
new tentative fox for NixOS/private-etc (4887)
Diffstat (limited to 'src')
-rw-r--r-- | src/fcopy/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fcopy/main.c b/src/fcopy/main.c index 3f2d3137f..4be35e23f 100644 --- a/src/fcopy/main.c +++ b/src/fcopy/main.c | |||
@@ -404,8 +404,7 @@ static void duplicate_link(const char *src, const char *dest, struct stat *s) { | |||
404 | 404 | ||
405 | // NixOS problem #4887: | 405 | // NixOS problem #4887: |
406 | // /etc/fonts is a double symlink to a directory - copy the files instead of copying the symlink | 406 | // /etc/fonts is a double symlink to a directory - copy the files instead of copying the symlink |
407 | // they could have some other dirs handled this way, so let's do it for all files in /etc | 407 | if (strcmp(src, "/etc/fonts") == 0) { |
408 | if (strncmp(src, "/etc/", 5) == 0) { | ||
409 | duplicate_dir(src, dest, s); | 408 | duplicate_dir(src, dest, s); |
410 | free(rsrc); | 409 | free(rsrc); |
411 | free(rdest); | 410 | free(rdest); |