mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-27 18:55:09 +03:00
sysusers: use "!*" instead of "!!" as an invalid group password
This basically implements fc58c0c7bf
for gshadow.
gpasswd may not have a lock/unlock that behaves the same as passwd, but
according to gshadow(5) the logic of the password field is the same.
This commit is contained in:
parent
8e24b1d23f
commit
bbbfe49b5e
@ -693,7 +693,7 @@ static int write_temporary_gshadow(const char * gshadow_path, FILE **tmpfile, ch
|
|||||||
ORDERED_HASHMAP_FOREACH(i, todo_gids) {
|
ORDERED_HASHMAP_FOREACH(i, todo_gids) {
|
||||||
struct sgrp n = {
|
struct sgrp n = {
|
||||||
.sg_namp = i->name,
|
.sg_namp = i->name,
|
||||||
.sg_passwd = (char*) "!!",
|
.sg_passwd = (char*) "!*",
|
||||||
};
|
};
|
||||||
|
|
||||||
r = putsgent_with_members(&n, gshadow);
|
r = putsgent_with_members(&n, gshadow);
|
||||||
|
Loading…
Reference in New Issue
Block a user