1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

xz: Change the coding style of the previous commit.

It isn't any better now but it's consistent with
the rest of the code base.
This commit is contained in:
Lasse Collin 2021-10-27 23:23:11 +03:00
parent 892b16cc28
commit f2aea1d5a5

View file

@ -373,8 +373,9 @@ io_copy_attrs(const file_pair *pair)
// nothing has to be done. Nevertheless OpenBSD fchown(2) fails // nothing has to be done. Nevertheless OpenBSD fchown(2) fails
// in this case which seems to be POSIX compliant. As there is // in this case which seems to be POSIX compliant. As there is
// nothing to do, skip the system call. // nothing to do, skip the system call.
if (pair->dest_st.st_gid != pair->src_st.st_gid && if (pair->dest_st.st_gid != pair->src_st.st_gid
fchown(pair->dest_fd, (uid_t)(-1), pair->src_st.st_gid)) { && fchown(pair->dest_fd, (uid_t)(-1),
pair->src_st.st_gid)) {
message_warning(_("%s: Cannot set the file group: %s"), message_warning(_("%s: Cannot set the file group: %s"),
pair->dest_name, strerror(errno)); pair->dest_name, strerror(errno));
// We can still safely copy some additional permissions: // We can still safely copy some additional permissions: