svn commit: r244918 - projects/mtree/usr.bin/xinstall
Brooks Davis
brooks at FreeBSD.org
Tue Jan 1 00:45:29 UTC 2013
Author: brooks
Date: Tue Jan 1 00:45:28 2013
New Revision: 244918
URL: http://svnweb.freebsd.org/changeset/base/244918
Log:
Fix a missing set of brackets that caused some chowns to fail.
Modified:
projects/mtree/usr.bin/xinstall/xinstall.c
Modified: projects/mtree/usr.bin/xinstall/xinstall.c
==============================================================================
--- projects/mtree/usr.bin/xinstall/xinstall.c Mon Dec 31 23:31:05 2012 (r244917)
+++ projects/mtree/usr.bin/xinstall/xinstall.c Tue Jan 1 00:45:28 2013 (r244918)
@@ -494,7 +494,7 @@ install(const char *from_name, const cha
err(EX_OSERR,"%s: chown/chgrp", to_name);
}
- if (mode != (to_sb.st_mode & ALLPERMS))
+ if (mode != (to_sb.st_mode & ALLPERMS)) {
if (dounpriv)
mode &= S_IRWXU|S_IRWXG|S_IRWXO;
if (fchmod(to_fd, mode)) {
@@ -503,6 +503,7 @@ install(const char *from_name, const cha
errno = serrno;
err(EX_OSERR, "%s: chmod", to_name);
}
+ }
/*
* If provided a set of flags, set them, otherwise, preserve the
More information about the svn-src-projects
mailing list