Patch from Danny Lepage <danny.lepage@cognicase.com> to fix
dutmp for uClibc.
This commit is contained in:
parent
5222d31a15
commit
8c4025e708
@ -39,7 +39,7 @@ extern int dutmp_main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Kludge around the fact that the binary format for utmp has changed. */
|
/* Kludge around the fact that the binary format for utmp has changed. */
|
||||||
#if __GNU_LIBRARY__ < 5 || defined __UCLIBC__
|
#if __GNU_LIBRARY__ < 5
|
||||||
/* Linux libc5 */
|
/* Linux libc5 */
|
||||||
while (read(file, (void*)&ut, sizeof(struct utmp))) {
|
while (read(file, (void*)&ut, sizeof(struct utmp))) {
|
||||||
printf("%d|%d|%s|%s|%s|%s|%s|%lx\n",
|
printf("%d|%d|%s|%s|%s|%s|%s|%lx\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user