Re: [Pkg-shadow-devel] Bug#1124105: passwd leaves behind /etc/.pwd.lock upon uninstalling
Hi,
On 2025-12-28 16:19, Chris Hofstaedtler wrote:
> * Chris Hofstaedtler <zeha@debian.org> [251228 13:27]:
> > On Sun, Dec 28, 2025 at 10:45:31AM +0100, Jochen Sprickerhof wrote:
> > > * Chris Hofstaedtler <zeha@debian.org> [2025-12-28 10:00]:
> [..]
>
> > > > Maybe `shadowconfig on` should just delete the lock file? Didn't
> > > > investigate yet if this is feasible.
> > >
> > > Probably also a good idea but that would be libc as shadowconfig is using
> > > pwconv which is calling lckpwdf() and that is creating the lock file. Maybe
> > > it should clean it up upon ulckpwdf().
>
> Another option might be to ship /etc/.pwd.lock as a proper conffile in a
> package. Even if src:shadow would clean up after installing, other packages
> using lckpwdf will still cause this issue.
>
> Given lckpwdf is in src:glibc, maybe there?
This could be libc-bin, which is still marked as Essential at this
stage. That said, are we sure that dpkg will never touch this file on
upgrade? Otherwise that just defeat the purpose of a lock file.
Regards
Aurelien
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://aurel32.net
Reply to: