| # | Line 40 | Line 40 | char *get_user_stats(){ | |
|---|---|---|
| 40 | #endif | |
| 41 | ||
| 42 | #if defined(LINUX) || defined(SOLARIS) | |
| 43 | + | setutent(); |
| 44 | while((entry=getutent()) != NULL) { | |
| 45 | if(entry->ut_type==USER_PROCESS) { | |
| 46 | user_tmp=user_list; | |
| # | Line 52 | Line 53 | char *get_user_stats(){ | |
| 53 | nousers++; | |
| 54 | } | |
| 55 | } | |
| 56 | + | endutent(); |
| 57 | #endif | |
| 58 | ||
| 59 | #ifdef FREEBSD | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |