=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/top/top.c,v retrieving revision 1.78 retrieving revision 1.79 diff -u -r1.78 -r1.79 --- src/usr.bin/top/top.c 2012/06/05 18:52:53 1.78 +++ src/usr.bin/top/top.c 2012/06/08 13:41:16 1.79 @@ -1,4 +1,4 @@ -/* $OpenBSD: top.c,v 1.78 2012/06/05 18:52:53 brynet Exp $ */ +/* $OpenBSD: top.c,v 1.79 2012/06/08 13:41:16 lum Exp $ */ /* * Top users/processes display for Unix @@ -153,9 +153,13 @@ if ((ps.huid = userid(optarg+1)) == (uid_t)-1) new_message(MT_delayed, "%s: unknown user", optarg); + else + ps.uid = (uid_t)-1; } else if ((ps.uid = userid(optarg)) == (uid_t)-1) new_message(MT_delayed, "%s: unknown user", optarg); + else + ps.huid = (uid_t)-1; break; case 'p': { /* display only process id */