semanage.c \
setugid.c \
setupenv.c \
- sgetspent.c \
sgroupio.c \
sgroupio.h \
shadow/group/sgetgrent.c \
shadow/gshadow/sgrp.h \
shadow/passwd/sgetpwent.c \
shadow/passwd/sgetpwent.h \
+ shadow/shadow/sgetspent.c \
+ shadow/shadow/sgetspent.h \
shadowio.c \
shadowio.h \
shadowlog.c \
/* setupenv.c */
extern void setup_env (struct passwd *);
-/* sgetspent.c */
-#ifndef HAVE_SGETSPENT
-extern struct spwd *sgetspent (const char *string);
-#endif
-
/* sgroupio.c */
extern void __sgr_del_entry (const struct commonio_entry *ent);
extern /*@null@*/ /*@only@*/struct sgrp *__sgr_dup (const struct sgrp *sgent);
-/*
- * SPDX-FileCopyrightText: 1989 - 1994, Julianne Frances Haugh
- * SPDX-FileCopyrightText: 1996 - 1998, Marek Michałkiewicz
- * SPDX-FileCopyrightText: 2003 - 2005, Tomasz Kłoczko
- * SPDX-FileCopyrightText: 2009 , Nicolas François
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
+// SPDX-FileCopyrightText: 1989-1994, Julianne Frances Haugh
+// SPDX-FileCopyrightText: 1996-1998, Marek Michałkiewicz
+// SPDX-FileCopyrightText: 2003-2005, Tomasz Kłoczko
+// SPDX-FileCopyrightText: 2009, Nicolas François
+// SPDX-FileCopyrightText: 2025, Alejandro Colomar <alx@kernel.org>
+// SPDX-License-Identifier: BSD-3-Clause
+
#include "config.h"
-/* Newer versions of Linux libc already have shadow support. */
-#ifndef HAVE_SGETSPENT
+#include "shadow/shadow/sgetspent.h"
-#ident "$Id$"
+#ifndef HAVE_SGETSPENT
#include <stddef.h>
#include <stdio.h>
--- /dev/null
+// SPDX-FileCopyrightText: 2025, Alejandro Colomar <alx@kernel.org>
+// SPDX-License-Identifier: BSD-3-Clause
+
+
+#ifndef SHADOW_INCLUDE_LIB_SHADOW_SHADOW_SGETSPENT_H_
+#define SHADOW_INCLUDE_LIB_SHADOW_SHADOW_SGETSPENT_H_
+
+
+#include "config.h"
+
+#include <shadow.h>
+
+
+#if !defined(HAVE_SGETSPENT)
+struct spwd *sgetspent(const char *s);
+#endif
+
+
+#endif // include guard