diff options
author | 2022-02-03 08:04:44 -0500 | |
---|---|---|
committer | 2022-02-03 08:04:44 -0500 | |
commit | 8c33968747016a8e473719db19f723f310a3a5a3 (patch) | |
tree | 48c25567cac9e6cf690d795f4045addf446bb116 /src/fcopy/main.c | |
parent | new tentative fox for NixOS/private-etc (4887) (diff) | |
download | firejail-8c33968747016a8e473719db19f723f310a3a5a3.tar.gz firejail-8c33968747016a8e473719db19f723f310a3a5a3.tar.zst firejail-8c33968747016a8e473719db19f723f310a3a5a3.zip |
new version for NixOS 4887
Diffstat (limited to 'src/fcopy/main.c')
-rw-r--r-- | src/fcopy/main.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/fcopy/main.c b/src/fcopy/main.c index 4be35e23f..c64d20127 100644 --- a/src/fcopy/main.c +++ b/src/fcopy/main.c | |||
@@ -402,15 +402,6 @@ static void duplicate_link(const char *src, const char *dest, struct stat *s) { | |||
402 | gid_t gid = s->st_gid; | 402 | gid_t gid = s->st_gid; |
403 | mode_t mode = s->st_mode; | 403 | mode_t mode = s->st_mode; |
404 | 404 | ||
405 | // NixOS problem #4887: | ||
406 | // /etc/fonts is a double symlink to a directory - copy the files instead of copying the symlink | ||
407 | if (strcmp(src, "/etc/fonts") == 0) { | ||
408 | duplicate_dir(src, dest, s); | ||
409 | free(rsrc); | ||
410 | free(rdest); | ||
411 | return; | ||
412 | } | ||
413 | |||
414 | // build destination file name | 405 | // build destination file name |
415 | char *name; | 406 | char *name; |
416 | // char *ptr = strrchr(rsrc, '/'); | 407 | // char *ptr = strrchr(rsrc, '/'); |