Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24605a1b62 | ||
|
|
9f3d42b14d | ||
|
|
f0f7fc60f2 | ||
|
|
bc0151d4d3 | ||
|
|
4b775cbff9 | ||
|
|
bc2cc1106d | ||
|
|
f630203ed8 | ||
|
|
7540b05197 | ||
|
|
eae0b02796 | ||
|
|
1c6a1206bd |
@@ -4,7 +4,7 @@ m4_define([libsubid_abi_major], 4)
|
||||
m4_define([libsubid_abi_minor], 0)
|
||||
m4_define([libsubid_abi_micro], 0)
|
||||
m4_define([libsubid_abi], [libsubid_abi_major.libsubid_abi_minor.libsubid_abi_micro])
|
||||
AC_INIT([shadow], [4.14.2], [pkg-shadow-devel@lists.alioth.debian.org], [],
|
||||
AC_INIT([shadow], [4.14.5], [pkg-shadow-devel@lists.alioth.debian.org], [],
|
||||
[https://github.com/shadow-maint/shadow])
|
||||
AM_INIT_AUTOMAKE([1.11 foreign dist-xz])
|
||||
AC_CONFIG_MACRO_DIRS([m4])
|
||||
@@ -32,6 +32,7 @@ AC_PROG_CC
|
||||
AC_PROG_LN_S
|
||||
AC_PROG_YACC
|
||||
LT_INIT
|
||||
LT_LIB_DLLOAD
|
||||
|
||||
dnl Checks for libraries.
|
||||
|
||||
|
||||
@@ -2,20 +2,20 @@
|
||||
# and also cooperate to make a distribution for `make dist'
|
||||
|
||||
pamd_files = \
|
||||
chpasswd \
|
||||
chfn \
|
||||
chsh \
|
||||
groupmems \
|
||||
login \
|
||||
newusers \
|
||||
passwd
|
||||
|
||||
pamd_acct_tools_files = \
|
||||
chage \
|
||||
chgpasswd \
|
||||
chpasswd \
|
||||
groupadd \
|
||||
groupdel \
|
||||
groupmod \
|
||||
newusers \
|
||||
useradd \
|
||||
userdel \
|
||||
usermod
|
||||
|
||||
@@ -20,6 +20,7 @@ endif
|
||||
|
||||
libshadow_la_CPPFLAGS += -I$(top_srcdir)
|
||||
libshadow_la_CFLAGS = $(LIBBSD_CFLAGS) $(LIBCRYPT_PAM) $(LIBSYSTEMD)
|
||||
libshadow_la_LIBADD = $(LIBADD_DLOPEN)
|
||||
|
||||
libshadow_la_SOURCES = \
|
||||
addgrps.c \
|
||||
|
||||
@@ -74,12 +74,14 @@ static bool is_valid_name (const char *name)
|
||||
|
||||
bool is_valid_user_name (const char *name)
|
||||
{
|
||||
size_t maxlen;
|
||||
|
||||
/*
|
||||
* User names length are limited by the kernel
|
||||
*/
|
||||
if (strlen (name) > sysconf(_SC_LOGIN_NAME_MAX)) {
|
||||
maxlen = sysconf(_SC_LOGIN_NAME_MAX);
|
||||
if (strlen(name) >= maxlen)
|
||||
return false;
|
||||
}
|
||||
|
||||
return is_valid_name (name);
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ done:
|
||||
return ret;
|
||||
}
|
||||
|
||||
unsigned long active_sessions_count(const char *name, unsigned long unused)
|
||||
unsigned long active_sessions_count(const char *name, unsigned long unused(limit))
|
||||
{
|
||||
struct passwd *pw;
|
||||
unsigned long count = 0;
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
static char **list (char *s)
|
||||
{
|
||||
static char **members = NULL;
|
||||
static int size = 0; /* max members + 1 */
|
||||
int i;
|
||||
static size_t size = 0; /* max members + 1 */
|
||||
size_t i;
|
||||
|
||||
i = 0;
|
||||
for (;;) {
|
||||
@@ -47,8 +47,10 @@ static char **list (char *s)
|
||||
if (i >= size) {
|
||||
size = i + 100; /* at least: i + 1 */
|
||||
members = REALLOCF(members, size, char *);
|
||||
if (!members)
|
||||
if (!members) {
|
||||
size = 0;
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (!s || s[0] == '\0')
|
||||
break;
|
||||
|
||||
@@ -9,7 +9,7 @@ RUN export DEBIAN_PRIORITY=critical \
|
||||
RUN apt-get update -y \
|
||||
&& apt-get dist-upgrade -y
|
||||
RUN apt-get build-dep shadow -y
|
||||
RUN apt-get install libbsd-dev pkgconf -y
|
||||
RUN apt-get install libltdl-dev libbsd-dev pkgconf -y
|
||||
|
||||
COPY ./ /usr/local/src/shadow/
|
||||
WORKDIR /usr/local/src/shadow/
|
||||
|
||||
Reference in New Issue
Block a user