SCCS-vsn: usr.bin/who/who.c 5.9
- * Copyright (c) 1980 Regents of the University of California.
+ * Copyright (c) 1980, 1989 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#ifndef lint
char copyright[] =
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#ifndef lint
char copyright[] =
-"@(#) Copyright (c) 1980 Regents of the University of California.\n\
+"@(#) Copyright (c) 1980, 1989 Regents of the University of California.\n\
All rights reserved.\n";
#endif not lint
#ifndef lint
All rights reserved.\n";
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)who.c 5.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)who.c 5.9 (Berkeley) %G%";
pw = getpwuid(getuid());
strncpy(utmp.ut_name, pw ? pw->pw_name : "?", NMAX);
time(&utmp.ut_time);
pw = getpwuid(getuid());
strncpy(utmp.ut_name, pw ? pw->pw_name : "?", NMAX);
time(&utmp.ut_time);
+ utmp.ut_host[0] = '\0';