mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Double-check home dir
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user