[Pkg-shadow-devel] Bug#917773: shadow: doesn't respect SOURCE_DATE_EPOCH

Johannes Schauer josch at debian.org
Sun Dec 30 12:55:04 GMT 2018


Control: tag -1 + patch

On Sun, 30 Dec 2018 01:58:46 +0100 Johannes 'josch' Schauer <josch at debian.org> wrote:
> the /etc/shadow as created by debootstrap does not respect the
> SOURCE_DATE_EPOCH environment variable anymore. This bug was formerly
> fixed in #857803. Steps to reproduce:
> 
> $ sudo SOURCE_DATE_EPOCH=0 debootstrap --variant=minbase unstable debian-unstable
> $ sudo cat debian-unstable/etc/shadow
> root:*:17895:0:99999:7:::
> daemon:*:17895:0:99999:7:::
> bin:*:17895:0:99999:7:::
> sys:*:17895:0:99999:7:::
> sync:*:17895:0:99999:7:::
> games:*:17895:0:99999:7:::
> man:*:17895:0:99999:7:::
> lp:*:17895:0:99999:7:::
> mail:*:17895:0:99999:7:::
> news:*:17895:0:99999:7:::
> uucp:*:17895:0:99999:7:::
> proxy:*:17895:0:99999:7:::
> www-data:*:17895:0:99999:7:::
> backup:*:17895:0:99999:7:::
> list:*:17895:0:99999:7:::
> irc:*:17895:0:99999:7:::
> gnats:*:17895:0:99999:7:::
> nobody:*:17895:0:99999:7:::
> _apt:*::0:99999:7:::
> 
> So some parts of shadow respect SOURCE_DATE_EPOCH (the user _apt is
> created with a lastchange field of zero) but other parts do not (the
> remaining users).

I now have a patch (attached) which fixes the problem.

Thanks!

cheers, josch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wip.patch
Type: text/x-diff
Size: 1395 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-shadow-devel/attachments/20181230/271a7a8a/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-shadow-devel/attachments/20181230/271a7a8a/attachment.sig>


More information about the Pkg-shadow-devel mailing list