Control: unmerge -1
Control: reassign -1 debianutils 5.7-0.4
Control: affects -1 + src:9base
Control: tag -1 patch pending

On 13/06/2023 07.26, Helmut Grohne wrote:

The entry is added by /usr/lib/usrmerge/convert-etc-shells (which is the
policy violation this bug has been merged into). The merging strategy
there is based on a knowledge of the symlinks that should exist rather
than looking them up in the filesystem.

So this is two distinct bugs actually. We also need to fix update-shells
to properly deal with update-alternatives using the patch above.

Let's use this bug for the debianutils side.

I've prepared a NMU with three changes:
https://salsa.debian.org/anbe/debianutils/-/commits/fix-update-shells
* avoid creating duplicate entries in /etc/shells
* handle /bin/sh as defined in the template file
* fix canonicalization of shells that are symlinks

Especially with the /bin/sh change in place, update-shells and convert-etc-shells should produce similar results. convert-etc-shells needs to call update-shells (before manipulating /etc/shells on its own, s.t. the statefile gets updated), and maybe it can be replaced entirely by update-shells.


Andreas

Reply via email to