Lines 259-264
Link Here
|
259 |
ps.self = -1; |
259 |
ps.self = -1; |
260 |
ps.system = No; |
260 |
ps.system = No; |
261 |
ps.uid = -1; |
261 |
ps.uid = -1; |
|
|
262 |
ps.buid = -1; |
262 |
ps.thread = No; |
263 |
ps.thread = No; |
263 |
ps.wcpu = 1; |
264 |
ps.wcpu = 1; |
264 |
ps.jail = No; |
265 |
ps.jail = No; |
Lines 997-1016
Link Here
|
997 |
"Username to show: "); |
998 |
"Username to show: "); |
998 |
if (readline(tempbuf2, sizeof(tempbuf2), No) > 0) |
999 |
if (readline(tempbuf2, sizeof(tempbuf2), No) > 0) |
999 |
{ |
1000 |
{ |
1000 |
if (tempbuf2[0] == '+' && |
1001 |
if ((tempbuf2[0] == '+' || tempbuf2[0] == '-') && |
1001 |
tempbuf2[1] == '\0') |
1002 |
tempbuf2[1] == '\0') |
1002 |
{ |
1003 |
{ |
1003 |
ps.uid = -1; |
1004 |
ps.uid = -1; |
|
|
1005 |
ps.buid = -1; |
1004 |
} |
1006 |
} |
|
|
1007 |
else if (tempbuf2[0] == '-') |
1008 |
{ |
1009 |
if ((i = userid(tempbuf2 + 1)) == -1) |
1010 |
{ |
1011 |
new_message(MT_standout, |
1012 |
" %s: unknown user", tempbuf2 + 1); |
1013 |
no_command = Yes; |
1014 |
} else { |
1015 |
ps.uid = -1; |
1016 |
ps.buid = i; |
1017 |
} |
1018 |
} |
1005 |
else if ((i = userid(tempbuf2)) == -1) |
1019 |
else if ((i = userid(tempbuf2)) == -1) |
1006 |
{ |
1020 |
{ |
1007 |
new_message(MT_standout, |
1021 |
new_message(MT_standout, |
1008 |
" %s: unknown user", tempbuf2); |
1022 |
" %s: unknown user", tempbuf2); |
1009 |
no_command = Yes; |
1023 |
no_command = Yes; |
1010 |
} |
1024 |
} else { |
1011 |
else |
|
|
1012 |
{ |
1013 |
ps.uid = i; |
1025 |
ps.uid = i; |
|
|
1026 |
ps.buid = -1; |
1014 |
} |
1027 |
} |
1015 |
putchar('\r'); |
1028 |
putchar('\r'); |
1016 |
} |
1029 |
} |