From: Alejandro Colomar Date: Fri, 10 May 2024 23:41:52 +0000 (+0200) Subject: lib/chkname.[ch]: Fix includes X-Git-Tag: 4.15.2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27e467a61a5509a7aa5f3fffd688394c7e8bc3aa;p=thirdparty%2Fshadow.git lib/chkname.[ch]: Fix includes Signed-off-by: Alejandro Colomar --- diff --git a/lib/chkname.c b/lib/chkname.c index fbd6ba889..eedf5db11 100644 --- a/lib/chkname.c +++ b/lib/chkname.c @@ -5,6 +5,7 @@ // SPDX-FileCopyrightText: 2023-2024, Alejandro Colomar // SPDX-License-Identifier: BSD-3-Clause + /* * is_valid_user_name(), is_valid_group_name() - check the new user/group * name for validity; @@ -13,6 +14,7 @@ * false - bad name */ + #include #ident "$Id$" @@ -20,11 +22,17 @@ #include #include #include +#include +#include +#include + #include "defines.h" #include "chkname.h" + int allow_bad_names = false; + static bool is_valid_name (const char *name) { if (allow_bad_names) { diff --git a/lib/chkname.h b/lib/chkname.h index 077134739..6d545b3f7 100644 --- a/lib/chkname.h +++ b/lib/chkname.h @@ -11,6 +11,7 @@ #ifndef _CHKNAME_H_ #define _CHKNAME_H_ + /* * is_valid_user_name(), is_valid_group_name() - check the new user/group * name for validity; @@ -19,7 +20,11 @@ * false - bad name */ -#include "defines.h" + +#include + +#include + extern bool is_valid_user_name (const char *name); extern bool is_valid_group_name (const char *name);