shadow/src
Chris Lamb fe34a2a0e4 Make the sp_lstchg shadow field reproducible (re. #71)
From <https://github.com/shadow-maint/shadow/pull/71>:

```
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.
```

This updated PR adds some missing calls to gettime (). This was originally
filed by Johannes Schauer in Debian as #917773 [2].

[0] https://reproducible-builds.org/
[1] https://reproducible-builds.org/specs/source-date-epoch/
[2] https://bugs.debian.org/917773
2019-03-31 16:00:01 +01:00
..
.gitignore Ignore generated newgidmap and newuidmap 2013-08-11 14:48:39 +02:00
.indent.pro [svn-upgrade] Integrating new upstream version, shadow (4.0.8) 2007-10-07 11:46:07 +00:00
chage.c Fixes mispelling of MAX_DAYS help text 2018-01-17 12:21:48 +00:00
chfn.c Flush sssd caches in addition to nscd caches 2018-09-13 14:20:02 +02:00
chgpasswd.c Flush sssd caches in addition to nscd caches 2018-09-13 14:20:02 +02:00
chpasswd.c Flush sssd caches in addition to nscd caches 2018-09-13 14:20:02 +02:00
chsh.c Flush sssd caches in addition to nscd caches 2018-09-13 14:20:02 +02:00
expiry.c Fixed signal races in shadow tools. 2016-07-02 18:11:09 +02:00
faillog.c * src/faillog.c: The fail_max field is a short, use a short also 2011-11-19 21:44:34 +00:00
gpasswd.c Flush sssd caches in addition to nscd caches 2018-09-13 14:20:02 +02:00
groupadd.c Flush sssd caches in addition to nscd caches 2018-09-13 14:20:02 +02:00
groupdel.c Flush sssd caches in addition to nscd caches 2018-09-13 14:20:02 +02:00
groupmems.c spelling: remove 2017-10-22 21:12:29 +00:00
groupmod.c Flush sssd caches in addition to nscd caches 2018-09-13 14:20:02 +02:00
groups.c * src/newgrp.c, src/userdel.c, src/grpck.c, src/gpasswd.c, 2010-08-22 19:36:09 +00:00
grpck.c Flush sssd caches in addition to nscd caches 2018-09-13 14:20:02 +02:00
grpconv.c Flush sssd caches in addition to nscd caches 2018-09-13 14:20:02 +02:00
grpunconv.c Flush sssd caches in addition to nscd caches 2018-09-13 14:20:02 +02:00
id.c * src/newgrp.c: Limit the scope of variable pid. 2010-03-23 11:26:34 +00:00
lastlog.c login.defs: Add LASTLOG_UID_MAX variable to limit lastlog to small uids. 2018-12-10 13:25:56 -06:00
login_nopam.c * src/newgrp.c: Limit the scope of variable pid. 2010-03-23 11:26:34 +00:00
login.c login.defs: Add LASTLOG_UID_MAX variable to limit lastlog to small uids. 2018-12-10 13:25:56 -06:00
logoutd.c * src/newgrp.c, src/userdel.c, src/grpck.c, src/gpasswd.c, 2010-08-22 19:36:09 +00:00
Makefile.am Merge pull request #136 from giuseppe/fcap-newuidmap-newgidmap 2018-10-27 11:26:31 -05:00
newgidmap.c new[ug]idmap: not require CAP_SYS_ADMIN in the parent userNS 2018-10-22 16:57:50 +02:00
newgrp.c spelling: logout 2017-10-22 20:28:57 +00:00
newuidmap.c new[ug]idmap: not require CAP_SYS_ADMIN in the parent userNS 2018-10-22 16:57:50 +02:00
newusers.c Flush sssd caches in addition to nscd caches 2018-09-13 14:20:02 +02:00
nologin.c Log UID in nologin 2018-08-13 16:46:04 +08:00
passwd.c Flush sssd caches in addition to nscd caches 2018-09-13 14:20:02 +02:00
pwck.c Make the sp_lstchg shadow field reproducible (re. #71) 2019-03-31 16:00:01 +01:00
pwconv.c Make the sp_lstchg shadow field reproducible (re. #71) 2019-03-31 16:00:01 +01:00
pwunconv.c Flush sssd caches in addition to nscd caches 2018-09-13 14:20:02 +02:00
su.c su.c: run pam_getenvlist() after setup_env 2018-06-25 16:00:21 +02:00
suauth.c spelling: unrecognized 2017-10-22 21:30:30 +00:00
sulogin.c Fixed signal races in shadow tools. 2016-07-02 18:11:09 +02:00
useradd.c login.defs: Add LASTLOG_UID_MAX variable to limit lastlog to small uids. 2018-12-10 13:25:56 -06:00
userdel.c Flush sssd caches in addition to nscd caches 2018-09-13 14:20:02 +02:00
usermod.c login.defs: Add LASTLOG_UID_MAX variable to limit lastlog to small uids. 2018-12-10 13:25:56 -06:00
vipw.c Flush sssd caches in addition to nscd caches 2018-09-13 14:20:02 +02:00