From c9d191df68ff27b839f66a5c6de13678454d2dfe Mon Sep 17 00:00:00 2001 From: netblue30 Date: Fri, 29 Apr 2022 08:41:01 -0400 Subject: remove inode warning from fcopy - long list of warnings for /etc/alternatives on Debian --- src/fcopy/main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') 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 } // extract mode and ownership - if (stat(infname, &s) != 0) { - if (!arg_quiet) - fprintf(stderr, "Warning fcopy: skipping %s, cannot find inode\n", infname); + if (stat(infname, &s) != 0) goto out; - } + uid_t uid = s.st_uid; gid_t gid = s.st_gid; mode_t mode = s.st_mode; -- cgit v1.2.3-70-g09d2