From 00700c1d42c704b846f71ec2412988cca94f958d Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 16 Sep 2011 21:14:21 +1000 Subject: [PATCH] Change permission and owner warning to verbose logging only instead of error. --- lrzip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lrzip.c b/lrzip.c index b1d5a4b..675b937 100644 --- a/lrzip.c +++ b/lrzip.c @@ -204,11 +204,11 @@ void preserve_perms(rzip_control *control, int fd_in, int fd_out) if (unlikely(fstat(fd_in, &st))) fatal("Failed to fstat input file\n"); if (unlikely(fchmod(fd_out, (st.st_mode & 0666)))) - print_err("Warning, unable to set permissions on %s\n", control->outfile); + print_verbose("Warning, unable to set permissions on %s\n", control->outfile); /* chown fail is not fatal */ if (unlikely(fchown(fd_out, st.st_uid, st.st_gid))) - print_err("Warning, unable to set owner on %s\n", control->outfile); + print_verbose("Warning, unable to set owner on %s\n", control->outfile); } /* Open a temporary outputfile to emulate stdout */