From: Alejandro Colomar Date: Sat, 8 Feb 2025 23:19:34 +0000 (+0100) Subject: src/useradd.c: Use !strcaseeq() instead of its pattern X-Git-Tag: 4.17.3~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7936241f425209b71ebc8986448c0c55069eb18c;p=thirdparty%2Fshadow.git src/useradd.c: Use !strcaseeq() instead of its pattern Signed-off-by: Alejandro Colomar --- diff --git a/src/useradd.c b/src/useradd.c index e271b30e1..ee52aafde 100644 --- a/src/useradd.c +++ b/src/useradd.c @@ -67,6 +67,7 @@ #include "string/memset/memzero.h" #include "string/sprintf/snprintf.h" #include "string/sprintf/xasprintf.h" +#include "string/strcmp/strcaseeq.h" #include "string/strcmp/streq.h" #include "string/strdup/xstrdup.h" #include "string/strtok/stpsep.h" @@ -2361,7 +2362,7 @@ static void create_mail (void) const char *spool; struct group *gr; - if (strcasecmp(create_mail_spool, "yes") != 0) + if (!strcaseeq(create_mail_spool, "yes")) return; spool = getdef_str("MAIL_DIR");