Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/procps/uptime.c


Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/procps/uptime.c

    r3232 r3621  
    8282#if ENABLE_FEATURE_UPTIME_UTMP_SUPPORT
    8383    {
    84         struct utmp *ut;
     84        struct utmpx *ut;
    8585        unsigned users = 0;
    86         while ((ut = getutent()) != NULL) {
    87             if ((ut->ut_type == USER_PROCESS) && (ut->ut_name[0] != '\0'))
     86        while ((ut = getutxent()) != NULL) {
     87            if ((ut->ut_type == USER_PROCESS) && (ut->ut_user[0] != '\0'))
    8888                users++;
    8989        }
Note: See TracChangeset for help on using the changeset viewer.