diff options
-rwxr-xr-x | lib/Vyatta/Login/User.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Vyatta/Login/User.pm b/lib/Vyatta/Login/User.pm index 02fb96ee..c8b53e0a 100755 --- a/lib/Vyatta/Login/User.pm +++ b/lib/Vyatta/Login/User.pm @@ -118,7 +118,7 @@ sub _delete_user { } system("pkill -9 -u $user"); - system("userdel $user") == 0 + system("userdel -r $user 2>/dev/null") == 0 or die "userdel of $user failed: $?\n"; } } |