Revert "local_sync_accounts: provides empty STDIN to pw userdel command"

This reverts commit c6b156bfa5.
This commit is contained in:
Renato Botelho 2013-11-14 15:44:21 -02:00
parent 33bcbe5a29
commit 0f84dee3eb

View File

@ -329,7 +329,7 @@ function local_sync_accounts() {
$line = explode(":",fgets($fd));
if (((!strncmp($line[0], "_", 1)) || ($line[2] < 2000) || ($line[2] > 65000)) && ($line[0] != "admin"))
continue;
$cmd = "/bin/echo | /usr/sbin/pw userdel -n '{$line[0]}'";
$cmd = "/usr/sbin/pw userdel -n '{$line[0]}'";
if($debug)
log_error(sprintf(gettext("Running: %s"), $cmd));
mwexec($cmd);