This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: fresh bug in utmp functions
- From: Ulrich Drepper <drepper at redhat dot com>
- To: Bruno Haible <bruno at clisp dot org>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Mon, 30 Sep 2002 15:30:57 -0700
- Subject: Re: fresh bug in utmp functions
- References: <15768.15095.309329.415238@honolulu.ilog.fr>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bruno Haible wrote:
> Btw, wouldn't this utempter program be a good addition to glibc, like
> pt_chown? It is tiny, and enables manipulation of utmp without need for
> setuid root.
I don't want any no code like this. All thi sutmp handling is horrible
enough as is. We will never be able to get rid of program modifying the
files directly (statically linked apps for instance) so let others deal
with the probmlem of finding a better way.
> * sysdeps/generic/utmp_file.c (LOCKING_FAILED): New macro.
> (UNLOCK_FILE): Add a label.
> (getutent_r_file, internal_getut_r, getutline_r_file, pututline_file,
> updwtmp_file): Shut off the alarm clock when locking failed.
The patch looks reasonable, I've applied it. Thanks,
- --
- --------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE9mNCh2ijCOnn/RHQRAtWEAJ4uLFo6ROK4JewBnx7vSxy2VPmbugCfXsem
yMv6jclFs9lTojyLz70SUus=
=CW8K
-----END PGP SIGNATURE-----