[Pkg-shadow-devel] Bug#474318: login: Close passwd while waiting for exit
Nicolas François
nicolas.francois at centraliens.net
Wed Apr 16 21:56:03 UTC 2008
tags 474318 fixed-upstream
thanks
On Sat, Apr 05, 2008 at 01:05:40AM +0200, Jörg Sommer wrote:
>
> login keeps the file /etc/passwd open with waits for the return from the
> shell.
>
> % ps fax
> 1846 ? Ss+ 0:00 /bin/login --
> 1898 vc/1 S+ 0:00 \_ /bin/bash /usr/bin/startx
> 1924 vc/1 S+ 0:00 \_ xinit /etc/X11/xinit/xinitrc -- /etc/X11/xini
>
> # ls -l /proc/$(pidof login)/fd
> insgesamt 0
> lrwx------ 1 root root 64 5. Apr 00:46 0 -> /dev/vc/1
> lrwx------ 1 root root 64 5. Apr 00:46 1 -> /dev/vc/1
> lrwx------ 1 root root 64 5. Apr 00:46 2 -> /dev/vc/1
> lr-x------ 1 root root 64 5. Apr 00:46 4 -> /etc/passwd
> lr-x------ 1 root root 64 5. Apr 00:46 5 -> pipe:[3131]
> lr-x------ 1 root root 64 5. Apr 00:46 6 -> /dev/urandom
> lrwx------ 1 root root 64 5. Apr 00:46 7 -> socket:[3059]
>
> Why does it keep this file open? Is it really necessary?
Thanks for reporting it.
No particular reasons. I fixed it upstream.
Best Regards,
--
Nekral
More information about the Pkg-shadow-devel
mailing list