File tree Expand file tree Collapse file tree 6 files changed +29
-18
lines changed Expand file tree Collapse file tree 6 files changed +29
-18
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,6 @@ libshadow_la_SOURCES = \
164
164
semanage.c \
165
165
setugid.c \
166
166
setupenv.c \
167
- sgetspent.c \
168
167
sgroupio.c \
169
168
sgroupio.h \
170
169
shadow/group/sgetgrent.c \
@@ -191,6 +190,8 @@ libshadow_la_SOURCES = \
191
190
shadow/gshadow/sgrp.h \
192
191
shadow/passwd/sgetpwent.c \
193
192
shadow/passwd/sgetpwent.h \
193
+ shadow/shadow/sgetspent.c \
194
+ shadow/shadow/sgetspent.h \
194
195
shadowio.c \
195
196
shadowio.h \
196
197
shadowlog.c \
Original file line number Diff line number Diff line change @@ -397,11 +397,6 @@ extern void setup (struct passwd *);
397
397
/* setupenv.c */
398
398
extern void setup_env (struct passwd * );
399
399
400
- /* sgetspent.c */
401
- #ifndef HAVE_SGETSPENT
402
- extern struct spwd * sgetspent (const char * string );
403
- #endif
404
-
405
400
/* sgroupio.c */
406
401
extern void __sgr_del_entry (const struct commonio_entry * ent );
407
402
extern /*@null@*/ /*@only@*/ struct sgrp * __sgr_dup (const struct sgrp * sgent );
Original file line number Diff line number Diff line change 1
- /*
2
- * SPDX-FileCopyrightText: 1989 - 1994, Julianne Frances Haugh
3
- * SPDX-FileCopyrightText: 1996 - 1998, Marek Michałkiewicz
4
- * SPDX-FileCopyrightText: 2003 - 2005, Tomasz Kłoczko
5
- * SPDX-FileCopyrightText: 2009 , Nicolas François
6
- *
7
- * SPDX-License-Identifier: BSD-3-Clause
8
- */
1
+ // SPDX-FileCopyrightText: 1989-1994, Julianne Frances Haugh
2
+ // SPDX-FileCopyrightText: 1996-1998, Marek Michałkiewicz
3
+ // SPDX-FileCopyrightText: 2003-2005, Tomasz Kłoczko
4
+ // SPDX-FileCopyrightText: 2009, Nicolas François
5
+ // SPDX-FileCopyrightText: 2025, Alejandro Colomar <[email protected] >
6
+ // SPDX-License-Identifier: BSD-3-Clause
7
+
9
8
10
9
#include <config.h>
11
10
12
- /* Newer versions of Linux libc already have shadow support. */
13
11
#ifndef HAVE_SGETSPENT
14
12
15
- #ident "$Id$"
16
-
17
13
#include <stddef.h>
18
14
#include <stdio.h>
19
15
#include <stdlib.h>
Original file line number Diff line number Diff line change
1
+ // SPDX-FileCopyrightText: 2025, Alejandro Colomar <[email protected] >
2
+ // SPDX-License-Identifier: BSD-3-Clause
3
+
4
+
5
+ #ifndef SHADOW_INCLUDE_LIB_SHADOW_SHADOW_SGETSPENT_H_
6
+ #define SHADOW_INCLUDE_LIB_SHADOW_SHADOW_SGETSPENT_H_
7
+
8
+
9
+ #include <config.h>
10
+
11
+ #include <shadow.h>
12
+
13
+
14
+ #if !defined(HAVE_SGETSPENT )
15
+ struct spwd * sgetspent (const char * s );
16
+ #endif
17
+
18
+
19
+ #endif // include guard
Original file line number Diff line number Diff line change 18
18
#include "fields.h"
19
19
#include "getdef.h"
20
20
#include "prototypes.h"
21
+ #include "shadow/shadow/sgetspent.h"
21
22
#include "shadowio.h"
22
23
23
24
#ifdef WITH_TCB
Original file line number Diff line number Diff line change @@ -56,7 +56,6 @@ lib/selinux.c
56
56
lib/semanage.c
57
57
lib/setugid.c
58
58
lib/setupenv.c
59
- lib/sgetspent.c
60
59
lib/sgroupio.c
61
60
lib/shadow/group/sgetgrent.c
62
61
lib/shadow/passwd/sgetpwent.c
You can’t perform that action at this time.
0 commit comments