Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jan 2013 00:45:29 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r244918 - projects/mtree/usr.bin/xinstall
Message-ID:  <201301010045.r010jTvs045520@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301010045.r010jTvs045520>