diff options
author | Mike Rambo <mrambo3501@mageia.org> | 2018-03-07 13:09:04 -0500 |
---|---|---|
committer | Mike Rambo <mrambo3501@mageia.org> | 2018-03-07 13:09:04 -0500 |
commit | f2d2ab69591a47380fbdcc3c226d9386d1a95764 (patch) | |
tree | 9181875e4b0ef8f79c78d3feeb7523c5c65b55eb | |
parent | 9765b02dd7a170a46496cc3ba6cd32cc49e5f595 (diff) | |
download | userdrake-f2d2ab69591a47380fbdcc3c226d9386d1a95764.tar userdrake-f2d2ab69591a47380fbdcc3c226d9386d1a95764.tar.gz userdrake-f2d2ab69591a47380fbdcc3c226d9386d1a95764.tar.bz2 userdrake-f2d2ab69591a47380fbdcc3c226d9386d1a95764.tar.xz userdrake-f2d2ab69591a47380fbdcc3c226d9386d1a95764.zip |
- version 2.17 Notify user when home directory name already exists (mga#21333)
-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}); |