]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
xz: Change the coding style of the previous commit.
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 27 Oct 2021 20:23:11 +0000 (23:23 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 12 Jul 2022 16:01:09 +0000 (19:01 +0300)
It isn't any better now but it's consistent with
the rest of the code base.

src/xz/file_io.c

index 676508dc07f7d599d9b5d505689520baf6fdf3f0..3aadb2255b188d22ac0c14dd83b87c1db774542b 100644 (file)
@@ -369,12 +369,13 @@ io_copy_attrs(const file_pair *pair)
        mode_t mode;
 
        // With BSD semantics the new dest file may have a group that
-       // does not belong to the user.  If the src file has the same gid
-       // nothing has to be done.  Nevertheless OpenBSD fchown(2) fails
-       // in this case which seems to be POSIX compliant.  As there is
+       // does not belong to the user. If the src file has the same gid
+       // nothing has to be done. Nevertheless OpenBSD fchown(2) fails
+       // in this case which seems to be POSIX compliant. As there is
        // nothing to do, skip the system call.
-       if (pair->dest_st.st_gid != pair->src_st.st_gid &&
-           fchown(pair->dest_fd, (uid_t)(-1), 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)) {
                message_warning(_("%s: Cannot set the file group: %s"),
                                pair->dest_name, strerror(errno));
                // We can still safely copy some additional permissions: