mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Revert "local_sync_accounts: provides empty STDIN to pw userdel command"
This reverts commit c6b156bfa5.
This commit is contained in:
parent
33bcbe5a29
commit
0f84dee3eb
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user