This commit is contained in:
Jamie Cameron
2022-09-14 23:22:41 -07:00
parent 26138b82f5
commit f3e1f347a5
2 changed files with 4 additions and 0 deletions

View File

@ -158,6 +158,7 @@ usave_ereal='$1' is not a valid real name
usave_ehome='$1' is not a valid home directory
usave_esgname='$1' is not a valid secondary group name
usave_ehomepath=You are not allowed to create the home directory $1
usave_ehomeslash=Home directory $1 cannot end with a /
usave_eshell='$1' is not an allowable shell
usave_egid='$1' is not a valid group
usave_egcreate=You are not allowed to create new groups for new users

View File

@ -225,6 +225,9 @@ elsif ($config{'home_base'} && $in{'home_base'}) {
}
else {
# Manual home directory chosen
if ($in{'home'} =~ /\/$/ && $in{'home'} ne '/') {
&error(&text('usave_ehomeslash', $in{'home'}));
}
$user{'home'} = $in{'home'};
}
$real_home ||= $user{'home'};