=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/who/who.c,v retrieving revision 1.3 retrieving revision 1.4 diff -c -r1.3 -r1.4 *** src/usr.bin/who/who.c 1997/01/17 07:13:50 1.3 --- src/usr.bin/who/who.c 1997/03/25 21:28:12 1.4 *************** *** 1,4 **** ! /* $OpenBSD: who.c,v 1.3 1997/01/17 07:13:50 millert Exp $ */ /* $NetBSD: who.c,v 1.4 1994/12/07 04:28:49 jtc Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: who.c,v 1.4 1997/03/25 21:28:12 deraadt Exp $ */ /* $NetBSD: who.c,v 1.4 1994/12/07 04:28:49 jtc Exp $ */ /* *************** *** 47,53 **** #if 0 static char sccsid[] = "@(#)who.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: who.c,v 1.3 1997/01/17 07:13:50 millert Exp $"; #endif /* not lint */ #include --- 47,53 ---- #if 0 static char sccsid[] = "@(#)who.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: who.c,v 1.4 1997/03/25 21:28:12 deraadt Exp $"; #endif /* not lint */ #include *************** *** 151,157 **** if (t = strrchr(p, '/')) p = t + 1; while (fread((char *)&usr, sizeof(usr), 1, ufp) == 1) ! if (usr.ut_name && !strcmp(usr.ut_line, p)) { output(&usr); return; } --- 151,157 ---- if (t = strrchr(p, '/')) p = t + 1; while (fread((char *)&usr, sizeof(usr), 1, ufp) == 1) ! if (*usr.ut_name && !strcmp(usr.ut_line, p)) { output(&usr); return; }