diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-02-02 09:27:45 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-02-02 09:27:45 -0800 |
commit | 2ef7028952cd56cb32318f1afe23a597500d4438 (patch) | |
tree | dd0acda33859083992534d08eeaedfe327ba5afa /lib/Vyatta | |
parent | fed73592cfd6fd2f87aad1669d1b9ebecfa03cdc (diff) | |
download | vyatta-cfg-quagga-2ef7028952cd56cb32318f1afe23a597500d4438.tar.gz vyatta-cfg-quagga-2ef7028952cd56cb32318f1afe23a597500d4438.zip |
Don't remove users home directory
If administrator makes a goof and user account gets deleted.
Then keep the old data to avoid problems.
Diffstat (limited to 'lib/Vyatta')
-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 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"; } } |