bug-bash
[Top][All Lists]
Advanced

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

Re: launched by rungetty bash breaks terminal input interpretation upon


From: Paul Jarc
Subject: Re: launched by rungetty bash breaks terminal input interpretation upon runlevel change
Date: Thu, 06 Dec 2001 11:30:35 -0500
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu)

Dumas Patrice <address@hidden> wrote:
> I've read the init code related to utmp initialization, it is:
>               /*
>          *      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));

You can duplicate this in the proper place in your boot scripts easily
enough:
(umask 022; : > /var/run/utmp)


paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]