89be7c0465
strlcpy(3) might not be visible since it is declared in <bsd/string.h>. This can lead to warnings, like: fields.c: In function 'change_field': fields.c:103:17: warning: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Wimplicit-function-declaration] 103 | strlcpy (buf, cp, maxsize); | ^~~~~~~ | strncpy ../lib/fields.c:103:17: warning: type of 'strlcpy' does not match original declaration [-Wlto-type-mismatch] 103 | strlcpy (buf, cp, maxsize); | ^ /usr/include/bsd/string.h:44:8: note: return value type mismatch 44 | size_t strlcpy(char *dst, const char *src, size_t siz); | ^ /usr/include/bsd/string.h:44:8: note: type 'size_t' should match type 'int' /usr/include/bsd/string.h:44:8: note: 'strlcpy' was previously declared here /usr/include/bsd/string.h:44:8: note: code may be misoptimized unless '-fno-strict-aliasing' is used
84 lines
1.2 KiB
Makefile
84 lines
1.2 KiB
Makefile
|
|
AUTOMAKE_OPTIONS = 1.0 foreign
|
|
|
|
DEFS =
|
|
|
|
noinst_LTLIBRARIES = libshadow.la
|
|
|
|
libshadow_la_CPPFLAGS = $(ECONF_CPPFLAGS)
|
|
if HAVE_VENDORDIR
|
|
libshadow_la_CPPFLAGS += -DVENDORDIR=\"$(VENDORDIR)\"
|
|
endif
|
|
|
|
libshadow_la_CPPFLAGS += -I$(top_srcdir)
|
|
libshadow_la_CFLAGS = $(LIBBSD_CFLAGS)
|
|
|
|
libshadow_la_SOURCES = \
|
|
commonio.c \
|
|
commonio.h \
|
|
defines.h \
|
|
encrypt.c \
|
|
exitcodes.h \
|
|
faillog.h \
|
|
fields.c \
|
|
fputsx.c \
|
|
getdef.c \
|
|
getdef.h \
|
|
get_gid.c \
|
|
getlong.c \
|
|
get_pid.c \
|
|
get_uid.c \
|
|
getulong.c \
|
|
groupio.c \
|
|
groupmem.c \
|
|
groupio.h \
|
|
gshadow.c \
|
|
lockpw.c \
|
|
nss.c \
|
|
nscd.c \
|
|
nscd.h \
|
|
shadowlog.c \
|
|
shadowlog.h \
|
|
shadowlog_internal.h \
|
|
sssd.c \
|
|
sssd.h \
|
|
pam_defs.h \
|
|
port.c \
|
|
port.h \
|
|
prototypes.h \
|
|
pwauth.c \
|
|
pwauth.h \
|
|
pwio.c \
|
|
pwio.h \
|
|
pwmem.c \
|
|
run_part.h \
|
|
run_part.c \
|
|
subordinateio.h \
|
|
subordinateio.c \
|
|
selinux.c \
|
|
semanage.c \
|
|
sgetgrent.c \
|
|
sgetpwent.c \
|
|
sgetspent.c \
|
|
sgroupio.c \
|
|
sgroupio.h\
|
|
shadow.c \
|
|
shadowio.c \
|
|
shadowio.h \
|
|
shadowmem.c \
|
|
spawn.c \
|
|
utent.c
|
|
|
|
if WITH_TCB
|
|
libshadow_la_SOURCES += tcbfuncs.c tcbfuncs.h
|
|
endif
|
|
|
|
# These files are unneeded for some reason, listed in
|
|
# order of appearance:
|
|
#
|
|
# sources for dbm support (not yet used)
|
|
|
|
EXTRA_DIST = \
|
|
.indent.pro \
|
|
gshadow_.h
|