mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Change permission and owner warning to verbose logging only instead of error.
This commit is contained in:
parent
d5e048dccf
commit
00700c1d42
4
lrzip.c
4
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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue