From 0f84dee3eb08752e0aba1412d5fb0ec2632b07c3 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 14 Nov 2013 15:44:21 -0200 Subject: Revert "local_sync_accounts: provides empty STDIN to pw userdel command" This reverts commit c6b156bfa537754d079868653ef3561eb1330d8c. --- etc/inc/auth.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc/auth.inc') diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 0ea2c00..67fd8b1 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -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); -- cgit v1.1