]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Fix yescrypt support
authorBernd Kuhls <bernd@kuhls.net>
Sun, 9 Jul 2023 08:55:03 +0000 (10:55 +0200)
committerSerge Hallyn <serge@hallyn.com>
Wed, 12 Jul 2023 13:31:51 +0000 (08:31 -0500)
Fixes build error:
newusers.c: In function 'update_passwd':
newusers.c:433:21: error: 'sflg' undeclared (first use in this function); did you mean 'rflg'?

introduced by
https://github.com/shadow-maint/shadow/commit/5cd04d03f94622c12220d4a6352824af081b8531
which forgot to define sflg for these configure options:

--without-sha-crypt --without-bcrypt --with-yescrypt

src/newusers.c

index 7cb8434b77dbed559556e75542fc75946b3cb66b..08f7979852bddee5e7e22310ccf9a4310d4755b9 100644 (file)
@@ -60,7 +60,7 @@ static bool rflg = false;     /* create a system account */
 #ifndef USE_PAM
 static /*@null@*//*@observer@*/char *crypt_method = NULL;
 #define cflg (NULL != crypt_method)
-#if defined(USE_SHA_CRYPT) || defined(USE_BCRYPT)
+#if defined(USE_SHA_CRYPT) || defined(USE_BCRYPT) || defined(USE_YESCRYPT)
 static bool sflg = false;
 #endif
 #ifdef USE_SHA_CRYPT