Allow for better utmp logging.
Increase (UT_NAMESIZE,UT_LINESIZE,UT_HOSTSIZE) to (32,32,256). Nobody writes utmp on Android but it would be nice to be aligned with others who use 32,32,256 (like glibc). If ever used it will produce nicer logging. There is no consensus in BSDs for these values. Bug: 14584341 Bug: 12875898 Change-Id: I94af10b982b8f9fcaea897c4cf968563f38403f9
This commit is contained in:
parent
9b5ee4aa85
commit
7d8f303353
@ -36,9 +36,15 @@
|
||||
#define _PATH_WTMP "/var/log/wtmp"
|
||||
#define _PATH_LASTLOG "/var/log/lastlog"
|
||||
|
||||
#define UT_NAMESIZE 8
|
||||
#define UT_LINESIZE 8
|
||||
#define UT_HOSTSIZE 16
|
||||
#ifdef __LP64__
|
||||
#define UT_NAMESIZE 32
|
||||
#define UT_LINESIZE 32
|
||||
#define UT_HOSTSIZE 256
|
||||
#else
|
||||
#define UT_NAMESIZE 8
|
||||
#define UT_LINESIZE 8
|
||||
#define UT_HOSTSIZE 16
|
||||
#endif
|
||||
|
||||
#define USER_PROCESS 7
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user