Bug#3149: upgrading base truncates utmp
> After upgrading base or a running system, /var/run/utmp is a zero length
> file. I think it should not be part of the package - instead, postinst
> should just touch it to make sure it exists. Same goes for wtmp.
And perhaps /etc/passwd and /etc/group .
> Also, I think the link /var/log/wtmp -> ../run/wtmp is wrong - wtmp
> should be in /var/log, and the link is not needed. Or is there
> a newer version of FSSTND where they moved these files again?
Wtmp but not utmp?
> What is /tmp/base.postinst for?
The base disk creation script runs it. I think it may not be a security
problem because dpkg moves it out of the way before replacing it.
There may be a small race window there.
Thanks
Bruce
--
Bruce Perens AB6YM Bruce@Pixar.com http://www.hams.com/
Reply to: