From 2ef7028952cd56cb32318f1afe23a597500d4438 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 2 Feb 2010 09:27:45 -0800 Subject: Don't remove users home directory If administrator makes a goof and user account gets deleted. Then keep the old data to avoid problems. --- lib/Vyatta/Login/User.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Vyatta') diff --git a/lib/Vyatta/Login/User.pm b/lib/Vyatta/Login/User.pm index 11cf7f23..e0142b3f 100755 --- a/lib/Vyatta/Login/User.pm +++ b/lib/Vyatta/Login/User.pm @@ -112,7 +112,7 @@ sub _delete_user { # This logs out user (so we can delete it) system("sudo pkill -u $user"); - system("sudo userdel -r '$user'") == 0 + system("sudo userdel $user") == 0 or die "userdel of $user failed: $?\n"; } } -- cgit v1.2.3