[123652] trunk/base/src/port1.0/portutil.tcl
jmr at macports.org
jmr at macports.org
Mon Aug 11 20:47:27 PDT 2014
Revision: 123652
https://trac.macports.org/changeset/123652
Author: jmr at macports.org
Date: 2014-08-11 20:47:27 -0700 (Mon, 11 Aug 2014)
Log Message:
-----------
don't fail due to stderr output when running dscl in addgroup
Modified Paths:
--------------
trunk/base/src/port1.0/portutil.tcl
Modified: trunk/base/src/port1.0/portutil.tcl
===================================================================
--- trunk/base/src/port1.0/portutil.tcl 2014-08-12 01:56:29 UTC (rev 123651)
+++ trunk/base/src/port1.0/portutil.tcl 2014-08-12 03:47:27 UTC (rev 123652)
@@ -2479,11 +2479,11 @@
set dscl [findBinary dscl $portutil::autoconf::dscl_path]
set failed? 0
try {
- exec $dscl . -create /Groups/${name} Password ${passwd}
- exec $dscl . -create /Groups/${name} RealName ${realname}
- exec $dscl . -create /Groups/${name} PrimaryGroupID ${gid}
+ exec -ignorestderr $dscl . -create /Groups/${name} Password ${passwd}
+ exec -ignorestderr $dscl . -create /Groups/${name} RealName ${realname}
+ exec -ignorestderr $dscl . -create /Groups/${name} PrimaryGroupID ${gid}
if {${users} ne ""} {
- exec $dscl . -create /Groups/${name} GroupMembership ${users}
+ exec -ignorestderr $dscl . -create /Groups/${name} GroupMembership ${users}
}
} catch {{CHILDKILLED *} eCode eMessage} {
# the foreachs are a simple workaround for Tcl 8.4, which doesn't
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140811/2a1474fa/attachment-0001.html>
More information about the macports-changes
mailing list