Bug#1017096: libnss-systemd: postinst script creates duplicates in the /etc/nsswitch.conf

Michael Biebl biebl at debian.org
Sat Aug 13 18:20:16 BST 2022


Control: clone -1 -2
Control: reassign -2 dh-nss
Control: found -2 1.4
Control: block -1 by -2

Am 13.08.22 um 17:00 schrieb Patrice Duroux:
> Package: libnss-systemd
> Version: 251.3-2
> Severity: normal
> 
> Dear Maintainer,
> 
> After the upgrade I got:
> passwd:         files systemd systemd
> group:          files systemd systemd
> shadow:         files systemd
> gshadow:        files systemd
> 
> After clean-up, this is easy to reproduce:
> dpkg-reconfigure libnss-systemd
> 
> and get:
> passwd:         files systemd systemd
> group:          files systemd systemd
> shadow:         files systemd systemd
> gshadow:        files systemd systemd
> 

The maintainer scripts code is generated by dh-nss, thus cloning the bug 
report for dh-nss.


  if ! grep -q -E '^[^#:]+:.*\s(systemd|systemd|systemd|systemd)\s' 
"${DPKG_ROOT}/etc/nsswitch.conf" ; then

looks suspicious.

I guess there should be separate checks for each passwd, group, shadow 
and gshadow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20220813/da96681a/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list