cb610d54b4
The third field in the /etc/shadow file (sp_lstchg) contains the date of the last password change expressed as the number of days since Jan 1, 1970. As this is a relative time, creating a user today will result in: username:17238:0:99999:7::: whilst creating the same user tomorrow will result in: username:17239:0:99999:7::: This has an impact for the Reproducible Builds[0] project where we aim to be independent of as many elements the build environment as possible, including the current date. This patch changes the behaviour to use the SOURCE_DATE_EPOCH[1] environment variable (instead of Jan 1, 1970) if valid. [0] https://reproducible-builds.org/ [1] https://reproducible-builds.org/specs/source-date-epoch/ Signed-off-by: Chris Lamb <lamby@debian.org>
74 lines
1.0 KiB
Makefile
74 lines
1.0 KiB
Makefile
|
|
EXTRA_DIST = .indent.pro xgetXXbyYY.c
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/lib
|
|
|
|
noinst_LIBRARIES = libmisc.a
|
|
|
|
libmisc_a_SOURCES = \
|
|
addgrps.c \
|
|
age.c \
|
|
audit_help.c \
|
|
basename.c \
|
|
chkname.c \
|
|
chkname.h \
|
|
chowndir.c \
|
|
chowntty.c \
|
|
cleanup.c \
|
|
cleanup_group.c \
|
|
cleanup_user.c \
|
|
console.c \
|
|
copydir.c \
|
|
entry.c \
|
|
env.c \
|
|
failure.c \
|
|
failure.h \
|
|
find_new_gid.c \
|
|
find_new_uid.c \
|
|
find_new_sub_gids.c \
|
|
find_new_sub_uids.c \
|
|
getdate.h \
|
|
getdate.y \
|
|
getgr_nam_gid.c \
|
|
getrange.c \
|
|
gettime.c \
|
|
hushed.c \
|
|
idmapping.h \
|
|
idmapping.c \
|
|
isexpired.c \
|
|
limits.c \
|
|
list.c log.c \
|
|
loginprompt.c \
|
|
mail.c \
|
|
motd.c \
|
|
myname.c \
|
|
obscure.c \
|
|
pam_pass.c \
|
|
pam_pass_non_interractive.c \
|
|
pwd2spwd.c \
|
|
pwdcheck.c \
|
|
pwd_init.c \
|
|
remove_tree.c \
|
|
rlogin.c \
|
|
root_flag.c \
|
|
salt.c \
|
|
setugid.c \
|
|
setupenv.c \
|
|
shell.c \
|
|
strtoday.c \
|
|
sub.c \
|
|
sulog.c \
|
|
ttytype.c \
|
|
tz.c \
|
|
ulimit.c \
|
|
user_busy.c \
|
|
utmp.c \
|
|
valid.c \
|
|
xgetpwnam.c \
|
|
xgetpwuid.c \
|
|
xgetgrnam.c \
|
|
xgetgrgid.c \
|
|
xgetspnam.c \
|
|
xmalloc.c \
|
|
yesno.c
|