pw lock/unlock throws out error messages even when called with -q, send stderr to /dev/null for now

This commit is contained in:
Renato Botelho 2015-09-10 14:41:30 -03:00
parent c77e22260b
commit e4d09dca87

View File

@ -522,7 +522,7 @@ function local_user_set(& $user) {
}
$un = $lock_account ? "" : "un";
exec("/usr/sbin/pw {$un}lock {$user_name} -q");
exec("/usr/sbin/pw {$un}lock {$user_name} -q 2>/dev/null");
conf_mount_ro();
}