aboutsummaryrefslogtreecommitdiffstats
path: root/src/fcopy/main.c
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2022-04-29 08:41:01 -0400
committerLibravatar netblue30 <netblue30@protonmail.com>2022-04-29 08:41:01 -0400
commitc9d191df68ff27b839f66a5c6de13678454d2dfe (patch)
tree4aa481f01627407fa73604c8b9624965d2da5c99 /src/fcopy/main.c
parentMerge branch 'master' of ssh://github.com/netblue30/firejail (diff)
downloadfirejail-c9d191df68ff27b839f66a5c6de13678454d2dfe.tar.gz
firejail-c9d191df68ff27b839f66a5c6de13678454d2dfe.tar.zst
firejail-c9d191df68ff27b839f66a5c6de13678454d2dfe.zip
remove inode warning from fcopy - long list of warnings for /etc/alternatives on Debian
Diffstat (limited to 'src/fcopy/main.c')
-rw-r--r--src/fcopy/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fcopy/main.c b/src/fcopy/main.c
index e56d853c8..b0b7f7024 100644
--- a/src/fcopy/main.c
+++ b/src/fcopy/main.c
@@ -286,11 +286,9 @@ static int fs_copydir(const char *infname, const struct stat *st, int ftype, str
286 } 286 }
287 287
288 // extract mode and ownership 288 // extract mode and ownership
289 if (stat(infname, &s) != 0) { 289 if (stat(infname, &s) != 0)
290 if (!arg_quiet)
291 fprintf(stderr, "Warning fcopy: skipping %s, cannot find inode\n", infname);
292 goto out; 290 goto out;
293 } 291
294 uid_t uid = s.st_uid; 292 uid_t uid = s.st_uid;
295 gid_t gid = s.st_gid; 293 gid_t gid = s.st_gid;
296 mode_t mode = s.st_mode; 294 mode_t mode = s.st_mode;