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
..
2011-09-18 21:02:43 +00:00
2017-10-22 18:33:13 +00:00
2017-03-01 22:51:09 +01:00
2017-03-01 22:51:09 +01:00
2017-10-22 19:17:02 +00:00
2018-06-18 15:51:27 +02:00
2017-10-22 19:08:39 +00:00
2017-10-22 18:33:13 +00:00
2013-08-04 15:56:32 +02:00
2018-06-24 00:13:12 -05:00
2011-11-06 18:40:06 +00:00