Change permission and owner warning to verbose logging only instead of error.

This commit is contained in:
Con Kolivas 2011-09-16 21:14:21 +10:00
parent d5e048dccf
commit 00700c1d42

View file

@ -204,11 +204,11 @@ void preserve_perms(rzip_control *control, int fd_in, int fd_out)
if (unlikely(fstat(fd_in, &st))) if (unlikely(fstat(fd_in, &st)))
fatal("Failed to fstat input file\n"); fatal("Failed to fstat input file\n");
if (unlikely(fchmod(fd_out, (st.st_mode & 0666)))) 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 */ /* chown fail is not fatal */
if (unlikely(fchown(fd_out, st.st_uid, st.st_gid))) 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 */ /* Open a temporary outputfile to emulate stdout */