Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/procps/uptime.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/procps/uptime.c
r3232 r3621 82 82 #if ENABLE_FEATURE_UPTIME_UTMP_SUPPORT 83 83 { 84 struct utmp *ut;84 struct utmpx *ut; 85 85 unsigned users = 0; 86 while ((ut = getut ent()) != 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')) 88 88 users++; 89 89 }
Note:
See TracChangeset
for help on using the changeset viewer.