summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-05-13 07:03:52 -0500
committerChris Buechler <cmb@pfsense.org>2016-05-13 07:03:52 -0500
commit535634e547150f72c5a5bd936d83c9d4c484e367 (patch)
tree9a8b1c5f5c5f878fabbdc40143bccbe996de73f1
parent4680f6bf755fa7d323beba599ea94646d2d5f3bb (diff)
downloadpfsense-535634e547150f72c5a5bd936d83c9d4c484e367.zip
pfsense-535634e547150f72c5a5bd936d83c9d4c484e367.tar.gz
Silence mwexec output. Now that the groupdel actually works, it spams the log when group isn't found. Ticket #6352
-rw-r--r--src/etc/inc/auth.inc2
1 files changed, 1 insertions, 1 deletions
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";
OpenPOWER on IntegriCloud