diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | NEWS | 4 | ||||
-rwxr-xr-x | userdrake | 6 |
3 files changed, 6 insertions, 6 deletions
@@ -1,4 +1,4 @@ -VERSION = 2.16 +VERSION = 2.17 NAME = userdrake BINNAME = userdrake @@ -1,4 +1,6 @@ -- add patch to notify of existing home directory (mga#21333) +Version 2.17 - 7 March 2018 + +- Notify user when home directory name already exists (mga#21333) Version 2.16 - 5 June 2017 @@ -586,10 +586,8 @@ sub AddUser() { $userEnt->ShadowMin(-1); $userEnt->ShadowMax(99999); $userEnt->ShadowWarn(-1); $userEnt->ShadowInact(-1); if ((-e $u{homedir}) && (-d $u{homedir})) { - my $keephomedir = $in->ask_yesorno(N("Home directory already exists"), N("The requested home directory already exists. Would you like to preserve the existing home directory?")); - if (!$keephomedir) { - return; - } + my $keephomedir = $in->ask_yesorno(N("Home directory already exists"), N("The requested home directory already exists. Would you like to preserve the existing directory?")); + return if !$keephomedir; } $ctx->UserAdd($userEnt, $is_system, $dontcreatehomedir, $homedir_perms); $ctx->UserSetPass($userEnt, $u{passwd}); |