From 7936241f425209b71ebc8986448c0c55069eb18c Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sun, 9 Feb 2025 00:19:34 +0100 Subject: [PATCH] src/useradd.c: Use !strcaseeq() instead of its pattern Signed-off-by: Alejandro Colomar --- src/useradd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); -- 2.47.3