Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move shadow APIs to lib/shadow/ #1197

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 23 additions & 5 deletions lib/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ libshadow_la_SOURCES = \
groupio.c \
groupmem.c \
groupio.h \
gshadow.c \
hushed.c \
idmapping.h \
idmapping.c \
Expand Down Expand Up @@ -167,14 +166,34 @@ libshadow_la_SOURCES = \
semanage.c \
setugid.c \
setupenv.c \
sgetgrent.c \
sgetpwent.c \
sgetspent.c \
sgroupio.c \
sgroupio.h\
sgroupio.h \
shadow.c \
shadow/group/sgetgrent.c \
shadow/group/sgetgrent.h \
shadow/grp/agetgroups.c \
shadow/grp/agetgroups.h \
shadow/gshadow/endsgent.c \
shadow/gshadow/endsgent.h \
shadow/gshadow/fgetsgent.c \
shadow/gshadow/fgetsgent.h \
shadow/gshadow/getsgent.c \
shadow/gshadow/getsgent.h \
shadow/gshadow/getsgnam.c \
shadow/gshadow/getsgnam.h \
shadow/gshadow/gshadow.c \
shadow/gshadow/gshadow.h \
shadow/gshadow/putsgent.c \
shadow/gshadow/putsgent.h \
shadow/gshadow/setsgent.c \
shadow/gshadow/setsgent.h \
shadow/gshadow/sgetsgent.c \
shadow/gshadow/sgetsgent.h \
shadow/gshadow/sgrp.c \
shadow/gshadow/sgrp.h \
shadow/passwd/sgetpwent.c \
shadow/passwd/sgetpwent.h \
shadowio.c \
shadowio.h \
shadowlog.c \
Expand Down Expand Up @@ -279,5 +298,4 @@ endif

EXTRA_DIST = \
.indent.pro \
gshadow_.h \
xgetXXbyYY.c
1 change: 1 addition & 0 deletions lib/age.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "defines.h"
#include "exitcodes.h"
#include "prototypes.h"
#include "shadow/gshadow/endsgent.h"


#ident "$Id$"
Expand Down
9 changes: 0 additions & 9 deletions lib/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@
#include <dirent.h>

#include <shadow.h>
#if defined(SHADOWGRP)
#include "gshadow_.h"
#endif

#include <limits.h>

Expand Down Expand Up @@ -164,12 +161,6 @@
#define SUBGID_FILE "/etc/subgid"
#endif

#ifdef SHADOWGRP
#ifndef SGROUP_FILE
#define SGROUP_FILE "/etc/gshadow"
#endif
#endif

/*
* string to use for the pw_passwd field in /etc/passwd when using
* shadow passwords - most systems use "x" but there are a few
Expand Down
1 change: 1 addition & 0 deletions lib/groupio.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "getdef.h"
#include "groupio.h"
#include "prototypes.h"
#include "shadow/group/sgetgrent.h"
#include "string/strcmp/streq.h"


Expand Down
278 changes: 0 additions & 278 deletions lib/gshadow.c

This file was deleted.

Loading
Loading