=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/top/Attic/username.c,v retrieving revision 1.19 retrieving revision 1.20 diff -c -r1.19 -r1.20 *** src/usr.bin/top/Attic/username.c 2018/09/16 02:44:06 1.19 --- src/usr.bin/top/Attic/username.c 2018/09/22 02:18:19 1.20 *************** *** 1,4 **** ! /* $OpenBSD: username.c,v 1.19 2018/09/16 02:44:06 millert Exp $ */ /* * Top users/processes display for Unix --- 1,4 ---- ! /* $OpenBSD: username.c,v 1.20 2018/09/22 02:18:19 procter Exp $ */ /* * Top users/processes display for Unix *************** *** 51,56 **** userid(const char *username) { uid_t uid; ! ! return uid_from_user(username, &uid); } --- 51,58 ---- userid(const char *username) { uid_t uid; ! if (uid_from_user(username, &uid) == -1) { ! uid = (uid_t)-1; ! } ! return uid; }