aboutsummaryrefslogtreecommitdiffstats
path: root/src/fcopy/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fcopy/main.c')
-rw-r--r--src/fcopy/main.c3
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);