Double-check home dir

This commit is contained in:
Jamie Cameron
2008-11-12 21:29:42 +00:00
parent 71ff2f1af1
commit 0f6c404cab

View File

@@ -390,7 +390,9 @@ foreach $line (split(/[\r\n]+/, $data)) {
&made_changes();
# Delete his home directory
if ($in{'delhome'} && $user->{'home'} !~ /^\/+$/) {
if ($in{'delhome'} &&
$user->{'home'} &&
$user->{'home'} !~ /^\/+$/) {
&delete_home_directory($user);
}