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> |
||
---|---|---|
.. | ||
.indent.pro | ||
commonio.c | ||
commonio.h | ||
defines.h | ||
encrypt.c | ||
exitcodes.h | ||
faillog.h | ||
fields.c | ||
fputsx.c | ||
get_gid.c | ||
get_pid.c | ||
get_uid.c | ||
getdef.c | ||
getdef.h | ||
getlong.c | ||
getulong.c | ||
groupio.c | ||
groupio.h | ||
groupmem.c | ||
gshadow_.h | ||
gshadow.c | ||
lockpw.c | ||
Makefile.am | ||
nscd.c | ||
nscd.h | ||
pam_defs.h | ||
port.c | ||
port.h | ||
prototypes.h | ||
pwauth.c | ||
pwauth.h | ||
pwio.c | ||
pwio.h | ||
pwmem.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 | ||
subordinateio.c | ||
subordinateio.h | ||
tcbfuncs.c | ||
tcbfuncs.h | ||
utent.c |