When a password is moved to the gshadow file, use "x" instead of "x"

to indicate that the password is shadowed (consistency with grpconv).
This commit is contained in:
nekral-guest 2008-02-26 20:09:56 +00:00
parent f43a4659c6
commit 528346cb3b
3 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-02-26 Nicolas François <nicolas.francois@centraliens.net>
* src/gpasswd.c: When a password is moved to the gshadow file, use
"x" instead of "x" to indicate that the password is shadowed
(consistency with grpconv).
2008-02-26 Nicolas François <nicolas.francois@centraliens.net>
* NEWS: Fix failures when the gshadow file is not present. Thanks

2
NEWS
View File

@ -23,6 +23,8 @@ shadow-4.1.0 -> shadow-4.1.1 UNRELEASED
passwd entry, but no shadow entry.
- gpasswd
* Fix failures when the gshadow file is not present.
* When a password is moved to the gshadow file, use "x" instead of "x"
to indicate that the password is shadowed (consistency with grpconv).
- groupadd
* New option -p/--password to specify an encrypted password.
* New option -r, --system for system accounts.

View File

@ -574,7 +574,7 @@ static void get_group (struct group *gr)
} else {
sg->sg_name = xstrdup (group);
sg->sg_passwd = gr->gr_passwd;
gr->gr_passwd = "!"; /* XXX warning: const */
gr->gr_passwd = SHADOW_PASSWD_STRING; /* XXX warning: const */
sg->sg_mem = dup_list (gr->gr_mem);