This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fresh bug in utmp functions


-----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-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]