shadow/gshadow/putsgent.h \
shadow/gshadow/setsgent.c \
shadow/gshadow/setsgent.h \
+ shadow/gshadow/sgrp.c \
+ shadow/gshadow/sgrp.h \
shadowio.c \
shadowio.h \
shadowlog.c \
#include "prototypes.h"
#include "shadow/gshadow/gshadow.h"
#include "shadow/gshadow/setsgent.h"
+#include "shadow/gshadow/sgrp.h"
#include "string/strcmp/streq.h"
#include "string/strtok/stpsep.h"
#include "string/strtok/strsep2arr.h"
# include <gshadow.h>
#else
-/*
- * Shadow group security file structure
- */
-struct sgrp {
- char *sg_namp; /* group name */
- char *sg_passwd; /* group password */
- char **sg_adm; /* group administrator list */
- char **sg_mem; /* group membership list */
-};
-
-/*
- * Shadow group security file functions.
- */
+#include <config.h>
#include <stdio.h> /* for FILE */
+#include "shadow/gshadow/sgrp.h"
+
+
/*@observer@*//*@null@*/struct sgrp *getsgent (void);
/*@observer@*//*@null@*/struct sgrp *getsgnam (const char *);
/*@observer@*//*@null@*/struct sgrp *sgetsgent (const char *);
#include "attr.h"
#include "defines.h"
#include "commonio.h"
+#include "shadow/gshadow/sgrp.h"
+
/* addgrps.c */
#if !defined(USE_PAM)
#include "sgroupio.h"
#include "shadow/gshadow/gshadow.h"
#include "shadow/gshadow/putsgent.h"
+#include "shadow/gshadow/sgrp.h"
#include "string/memset/memzero.h"
#ifndef _SGROUPIO_H
#define _SGROUPIO_H
+
+#include "config.h"
+
+#include "shadow/gshadow/sgrp.h"
+
+
extern int sgr_close (void);
extern bool sgr_file_present (void);
extern /*@observer@*/ /*@null@*/const struct sgrp *sgr_locate (const char *name);
#include "alloc/malloc.h"
#include "prototypes.h"
+#include "shadow/gshadow/sgrp.h"
/*
#include <stdio.h>
-#include "gshadow_.h"
+#include "shadow/gshadow/sgrp.h"
#if __has_include(<gshadow.h>)
--- /dev/null
+// SPDX-FileCopyrightText: 1990-1994, Julianne Frances Haugh
+// SPDX-FileCopyrightText: 1996-1998, Marek Michałkiewicz
+// SPDX-FileCopyrightText: 2005, Tomasz Kłoczko
+// SPDX-FileCopyrightText: 2008-2009, Nicolas François
+// SPDX-FileCopyrightText: 2024, Alejandro Colomar <alx@kernel.org>
+// SPDX-License-Identifier: BSD-3-Clause
+
+
+#include "config.h"
+
+#include "shadow/gshadow/sgrp.h"
--- /dev/null
+// SPDX-FileCopyrightText: 1988-1994, Julianne Frances Haugh
+// SPDX-FileCopyrightText: 1996-1997, Marek Michałkiewicz
+// SPDX-FileCopyrightText: 2003-2005, Tomasz Kłoczko
+// SPDX-FileCopyrightText: 2024, Alejandro Colomar <alx@kernel.org>
+// SPDX-License-Identifier: BSD-3-Clause
+
+
+#ifndef SHADOW_INCLUDE_LIB_SHADOW_GSHADOW_SGRP_H_
+#define SHADOW_INCLUDE_LIB_SHADOW_GSHADOW_SGRP_H_
+
+
+#include "config.h"
+
+
+#if __has_include(<gshadow.h>)
+# include <gshadow.h>
+#else
+struct sgrp {
+ char *sg_namp; /* group name */
+ char *sg_passwd; /* group password */
+ char **sg_adm; /* group administrator list */
+ char **sg_mem; /* group membership list */
+};
+#endif
+
+
+#endif // include guard
#endif
/*@-exitarg@*/
#include "exitcodes.h"
+#include "shadow/gshadow/sgrp.h"
#include "shadowlog.h"
#include "string/strcmp/streq.h"
#include "string/strtok/stpsep.h"
#ifdef SHADOWGRP
#include "sgroupio.h"
#endif
+#include "shadow/gshadow/sgrp.h"
#include "shadowlog.h"
#include "sssd.h"
#include "string/memset/memzero.h"
#ifdef SHADOWGRP
#include "sgroupio.h"
#endif
+#include "shadow/gshadow/sgrp.h"
#include "shadowlog.h"
#include "string/memset/memzero.h"
#include "string/strtok/stpsep.h"
#ifdef SHADOWGRP
#include "sgroupio.h"
#endif
+#include "shadow/gshadow/sgrp.h"
#include "shadowlog.h"
#include "string/strcmp/streq.h"
#include "string/strdup/xstrdup.h"
#ifdef SHADOWGRP
#include "sgroupio.h"
#endif
+#include "shadow/gshadow/sgrp.h"
#include "shadowlog.h"
#include "sssd.h"
#include "string/sprintf/stpeprintf.h"
#include "nscd.h"
#include "prototypes.h"
#include "shadow/gshadow/gshadow.h"
+#include "shadow/gshadow/sgrp.h"
#include "shadowlog.h"
#include "sssd.h"
#include "string/strcmp/streq.h"
#ifdef SHADOWGRP
#include "groupio.h"
#include "sgroupio.h"
+#include "shadow/gshadow/sgrp.h"
#include "shadowlog.h"
#include "sssd.h"
#include "groupio.h"
#include "sgroupio.h"
#include "shadow/gshadow/gshadow.h"
+#include "shadow/gshadow/sgrp.h"
#include "shadowlog.h"
#include "search/l/lsearch.h"
#include "shadow/grp/agetgroups.h"
#include "shadow/gshadow/endsgent.h"
+#include "shadow/gshadow/sgrp.h"
#include "shadowlog.h"
#include "string/sprintf/snprintf.h"
#include "string/strcmp/streq.h"
#ifdef ENABLE_SUBIDS
#include "subordinateio.h"
#endif /* ENABLE_SUBIDS */
+#include "shadow/gshadow/sgrp.h"
#include "shadowlog.h"
#include "sssd.h"
#include "string/sprintf/snprintf.h"
#ifdef WITH_TCB
#include "tcbfuncs.h"
#endif
+#include "shadow/gshadow/sgrp.h"
#include "shadowlog.h"
#include "sssd.h"
#include "string/memset/memzero.h"
#ifdef ENABLE_SUBIDS
#include "subordinateio.h"
#endif /* ENABLE_SUBIDS */
+#include "shadow/gshadow/sgrp.h"
#include "shadowlog.h"
#include "string/sprintf/aprintf.h"
#include "string/sprintf/xaprintf.h"
#include "tcbfuncs.h"
#endif
#include "shadow/gshadow/endsgent.h"
+#include "shadow/gshadow/sgrp.h"
#include "shadowlog.h"
#include "sssd.h"
#include "string/memset/memzero.h"