[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /var/run/utmp



After some investigation, the problem may not be as bad as it first seemed.
A lot of the programs that came up in my quick test already use the library
calls.

For instance, in the sysvinit package, everything is handled properly, but
init.c contains this one line:

/*
 *      Initialize /var/run/utmp (only works if /var is on
 *      root and mounted rw)
 */
 (void) close(open(UTMP_FILE, O_WRONLY|O_CREAT|O_TRUNC, 0644));

This causes it to have /var/run/utmp hard-coded into it.  Hopefully, many of
the packages have similar situations, although some are already known to
have more serious problems.

-- 
Dan Gohman
gohmandj@cda.mrs.umn.edu


Reply to: