aboutsummaryrefslogtreecommitdiffstats
path: root/src/fcopy
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2022-02-03 08:04:44 -0500
committerLibravatar netblue30 <netblue30@protonmail.com>2022-02-03 08:04:44 -0500
commit8c33968747016a8e473719db19f723f310a3a5a3 (patch)
tree48c25567cac9e6cf690d795f4045addf446bb116 /src/fcopy
parentnew tentative fox for NixOS/private-etc (4887) (diff)
downloadfirejail-8c33968747016a8e473719db19f723f310a3a5a3.tar.gz
firejail-8c33968747016a8e473719db19f723f310a3a5a3.tar.zst
firejail-8c33968747016a8e473719db19f723f310a3a5a3.zip
new version for NixOS 4887
Diffstat (limited to 'src/fcopy')
-rw-r--r--src/fcopy/main.c9
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, '/');