Commit 714d0ba2 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Do not throw a fatal error if the user homedir does not exist when deleting

the account.
parent 34f645e1
......@@ -300,7 +300,8 @@ sub DeleteUser()
# XXX we only handle homedirs of the form /users/$user here...
if ($hdir ne "$USERROOT/$user" || WhackDir($USERROOT, $user)) {
if ($hdir ne "$USERROOT/$user" ||
(-e $hdir && WhackDir($USERROOT, $user))) {
fatal("Could not destroy $user homedir $hdir");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment