From: Jeremy Whiting Date: Wed, 27 Jul 2022 18:02:12 +0000 (-0600) Subject: Fix E_NAME_IN_USE documentation. X-Git-Tag: 4.12~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5aba2624b650283481b0978f4e4bba507c8e607;p=thirdparty%2Fshadow.git Fix E_NAME_IN_USE documentation. Since code gives this error if username or group name is already used the documentation should reflect that. --- diff --git a/man/useradd.8.xml b/man/useradd.8.xml index b96a4d3c9..3371a95da 100644 --- a/man/useradd.8.xml +++ b/man/useradd.8.xml @@ -841,7 +841,7 @@ 9 - username already in use + username or group name already in use diff --git a/src/useradd.c b/src/useradd.c index ce78eab1d..6eaeb5336 100644 --- a/src/useradd.c +++ b/src/useradd.c @@ -172,7 +172,7 @@ static bool home_added = false; #define E_BAD_ARG 3 /* invalid argument to option */ #define E_UID_IN_USE 4 /* UID already in use (and no -o) */ #define E_NOTFOUND 6 /* specified group doesn't exist */ -#define E_NAME_IN_USE 9 /* username already in use */ +#define E_NAME_IN_USE 9 /* username or group name already in use */ #define E_GRP_UPDATE 10 /* can't update group file */ #define E_HOMEDIR 12 /* can't create home directory */ #define E_MAILBOXFILE 13 /* can't create mailbox file */ diff --git a/src/usermod.c b/src/usermod.c index e90b70577..44e056ae8 100644 --- a/src/usermod.c +++ b/src/usermod.c @@ -67,7 +67,7 @@ /* #define E_BAD_PWFILE 5 passwd file contains errors */ #define E_NOTFOUND 6 /* specified user/group doesn't exist */ #define E_USER_BUSY 8 /* user to modify is logged in */ -#define E_NAME_IN_USE 9 /* username already in use */ +#define E_NAME_IN_USE 9 /* username or group name already in use */ #define E_GRP_UPDATE 10 /* can't update group file */ /* #define E_NOSPACE 11 insufficient space to move home dir */ #define E_HOMEDIR 12 /* unable to complete home dir move */