Add the comment from Andrea Arcangeli about the correct
place of setting the default childhandler within spawn(). Make sure that newline is printed out for last(1) even if an utmp record entry is truncated. Check if utmp not only exists but is writable and delay writing out of the utmp runlevel record if utmp is not writable. Be able to find libcrypt also on 64 bit based architectures.
This commit is contained in:
@ -118,6 +118,10 @@ typedef struct _child_ {
|
||||
extern CHILD *family;
|
||||
extern int wrote_wtmp_reboot;
|
||||
extern int wrote_utmp_reboot;
|
||||
extern int wrote_wtmp_rlevel;
|
||||
extern int wrote_utmp_rlevel;
|
||||
extern char thislevel;
|
||||
extern char prevlevel;
|
||||
|
||||
/* Tokens in state parser */
|
||||
#define C_VER 1
|
||||
@ -139,4 +143,6 @@ extern int wrote_utmp_reboot;
|
||||
#define D_WROTE_UTMP_REBOOT -7
|
||||
#define D_SLTIME -8
|
||||
#define D_DIDBOOT -9
|
||||
#define D_WROTE_WTMP_RLEVEL -16
|
||||
#define D_WROTE_UTMP_RLEVEL -17
|
||||
|
||||
|
Reference in New Issue
Block a user