]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/chkname.[ch]: Fix includes
authorAlejandro Colomar <alx@kernel.org>
Fri, 10 May 2024 23:41:52 +0000 (01:41 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Tue, 21 May 2024 11:26:41 +0000 (13:26 +0200)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/chkname.c
lib/chkname.h

index fbd6ba8899d0b783671f5dbab633bbefec26ae8f..eedf5db111d1cc0a95b2be2bd79bd7bd6d923326 100644 (file)
@@ -5,6 +5,7 @@
 // SPDX-FileCopyrightText: 2023-2024, Alejandro Colomar <alx@kernel.org>
 // 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 <config.h>
 
 #ident "$Id$"
 #include <ctype.h>
 #include <errno.h>
 #include <limits.h>
+#include <stdbool.h>
+#include <stddef.h>
+#include <unistd.h>
+
 #include "defines.h"
 #include "chkname.h"
 
+
 int allow_bad_names = false;
 
+
 static bool is_valid_name (const char *name)
 {
        if (allow_bad_names) {
index 0771347394ec41493a2303cfdc800b0616c294c8..6d545b3f7950d9626513bd504e6d897771e45456 100644 (file)
@@ -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;
  *   false - bad name
  */
 
-#include "defines.h"
+
+#include <config.h>
+
+#include <stdbool.h>
+
 
 extern bool is_valid_user_name (const char *name);
 extern bool is_valid_group_name (const char *name);