|
Lines 273-278
Link Here
|
| 273 |
readbuf[numread] = 0; |
274 |
readbuf[numread] = 0; |
| 274 |
readbuf[2047] = 0; |
275 |
readbuf[2047] = 0; |
| 275 |
inputcommand += readbuf; |
276 |
inputcommand += readbuf; |
|
|
277 |
if (!tqApp->hasPendingEvents()) { |
| 278 |
usleep(500); |
| 279 |
} |
| 276 |
tqApp->processEvents(); |
280 |
tqApp->processEvents(); |
| 277 |
} |
281 |
} |
| 278 |
if (closingDown) { |
282 |
if (closingDown) { |
|
Lines 508-518
Link Here
|
| 508 |
int count = 0; |
517 |
int count = 0; |
| 509 |
for (setpwent(); (ps = getpwent()) != 0;) { |
518 |
for (setpwent(); (ps = getpwent()) != 0;) { |
| 510 |
if (*ps->pw_dir && *ps->pw_shell && |
519 |
if (*ps->pw_dir && *ps->pw_shell && |
| 511 |
(ps->pw_uid >= (unsigned)_lowUserId || |
520 |
((ps->pw_uid >= (unsigned)_lowUserId) || |
| 512 |
!ps->pw_uid && _showRoot) && |
521 |
((!ps->pw_uid) && _showRoot)) && |
| 513 |
ps->pw_uid <= (unsigned)_highUserId && |
522 |
(ps->pw_uid <= (unsigned)_highUserId) && |
| 514 |
!noUsers.hasUser( ps->pw_name ) && |
523 |
(!noUsers.hasUser( ps->pw_name )) && |
| 515 |
!noUsers.hasGroup( ps->pw_gid )) |
524 |
(!noUsers.hasGroup( ps->pw_gid ))) |
| 516 |
{ |
525 |
{ |
| 517 |
TQString username( TQFile::decodeName( ps->pw_name ) ); |
526 |
TQString username( TQFile::decodeName( ps->pw_name ) ); |
| 518 |
if (!dupes.find( username )) { |
527 |
if (!dupes.find( username )) { |
|
Lines 574-580
Link Here
|
| 574 |
for (setpwent(); (ps = getpwent()) != 0;) { |
583 |
for (setpwent(); (ps = getpwent()) != 0;) { |
| 575 |
if (*ps->pw_dir && *ps->pw_shell && |
584 |
if (*ps->pw_dir && *ps->pw_shell && |
| 576 |
(ps->pw_uid >= (unsigned)_lowUserId || |
585 |
(ps->pw_uid >= (unsigned)_lowUserId || |
| 577 |
!ps->pw_uid && _showRoot) && |
586 |
((!ps->pw_uid) && _showRoot)) && |
| 578 |
ps->pw_uid <= (unsigned)_highUserId && |
587 |
ps->pw_uid <= (unsigned)_highUserId && |
| 579 |
(users.hasUser( ps->pw_name ) || |
588 |
(users.hasUser( ps->pw_name ) || |
| 580 |
users.hasGroup( ps->pw_gid ))) |
589 |
users.hasGroup( ps->pw_gid ))) |