From 535634e547150f72c5a5bd936d83c9d4c484e367 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Fri, 13 May 2016 07:03:52 -0500 Subject: Silence mwexec output. Now that the groupdel actually works, it spams the log when group isn't found. Ticket #6352 --- src/etc/inc/auth.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/etc/inc/auth.inc') diff --git a/src/etc/inc/auth.inc b/src/etc/inc/auth.inc index d131e86..a3cf01c 100644 --- a/src/etc/inc/auth.inc +++ b/src/etc/inc/auth.inc @@ -761,7 +761,7 @@ function local_group_set($group, $reset = false) { } /* determine add or mod */ - if (mwexec("/usr/sbin/pw groupshow -g {$group_gid} 2>&1") == 0) { + if (mwexec("/usr/sbin/pw groupshow -g {$group_gid} 2>&1", true) == 0) { $group_op = "groupmod -l"; } else { $group_op = "groupadd -n"; -- cgit v1.1