From: nl6720 Date: Wed, 30 Sep 2020 05:09:25 +0000 (+0300) Subject: sysusers: use "!*" instead of "!!" as an invalid group password X-Git-Tag: v247-rc1~150 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bbbfe49b5eb0c571c10fa7991c10bac620f3c453;p=thirdparty%2Fsystemd.git sysusers: use "!*" instead of "!!" as an invalid group password This basically implements fc58c0c7bf7e4f525b916e3e5be0de2307fef04e 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. --- diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c index 7349e9fcb9c..cb94358a3a2 100644 --- a/src/sysusers/sysusers.c +++ b/src/sysusers/sysusers.c @@ -693,7 +693,7 @@ static int write_temporary_gshadow(const char * gshadow_path, FILE **tmpfile, ch ORDERED_HASHMAP_FOREACH(i, todo_gids) { struct sgrp n = { .sg_namp = i->name, - .sg_passwd = (char*) "!!", + .sg_passwd = (char*) "!*", }; r = putsgent_with_members(&n, gshadow);