Commit Graph

23 Commits

Author SHA1 Message Date
mrg
8d51c2f90d properly terminal buffer after calling strftime. 1997-04-13 13:44:13 +00:00
christos
85d90bc463 PR/3416: enami tsugutomo: fix bug introduced in previous change to handle
long hostnames.
1997-03-31 04:13:15 +00:00
christos
3c24c46e1c PR/3399: Tatoku Ogaito: Careful with not null terminated utmp strings. 1997-03-29 23:21:37 +00:00
explorer
a030e0a1ae Message buffer passed to kvm_openfiles() should _POSIX2_LINE_MAX long; PR#3266 1997-03-03 22:12:19 +00:00
tls
60a059d296 Sync to 4.4BSD-Lite2 1997-01-09 11:55:19 +00:00
thorpej
2a295146f3 Discard setgid privileges if not reading the running kernel as suggested
by Mike Grupenhoff <ashmir@umiacs.umd.edu> in PR #2485.
1996-06-07 01:36:39 +00:00
jtc
68a63eb204 Use errx() instead of err() to report failure of kvm_getprocs() call,
as errno doesn't have a meaningful value in this case.  Reported by
Mike Grupenhoff <kashmir@umiacs.umd.edu> in PR #2289.
1996-04-08 21:32:05 +00:00
mycroft
753e31a4fe Don't core dump when tty has no associated process. 1995-05-25 04:02:19 +00:00
mycroft
09984612d7 Gather the argument list only as necessary. Avoid an extra strvisx(3).
Make this compile again with the changes in ps(1).
1995-05-21 13:42:48 +00:00
cgd
81cef407d8 fix annoying number consistency bug. 1995-03-28 12:48:45 +00:00
cgd
cc3bb2da02 Fix from John Brezak for the following bug:
If there is a non-tty entry in utmp, w(1) will exit with an error.
However there are legitimate non-tty entries, for instance an xlogin via
xdm can be identified with the xlogin program. In this case there is an
entry with the display name as the ut_tty.
1994-06-30 08:08:08 +00:00
cgd
6a3b73440c fix from Jarle Greipsland <jarle@idt.unit.no> to deal with ut_line misprinting. 1994-06-30 07:18:44 +00:00
cgd
5a9cb8543e clean up import 1994-05-09 03:35:55 +00:00
cgd
25718695be update for changed flags 1994-05-05 02:04:10 +00:00
mycroft
6be6fca207 Print -' rather than ' for 0 idle time. 1993-10-26 20:52:51 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd
eed6472f7c don't print process args, print the vis(3)'d process args... 1993-07-15 17:55:48 +00:00
deraadt
b1d2d04ee4 chris found a case where cn_tty was being used. Doesn't look like the
right thing to do, so it goes away.
1993-07-07 18:58:23 +00:00
mycroft
da84bb1ffa Fix definition of rcsid. 1993-06-08 14:47:33 +00:00
cgd
5617a0f97a add rcsid 1993-05-20 12:19:00 +00:00
mycroft
1298891a7a Don't segv if no process found on tty. 1993-04-26 15:50:34 +00:00
sef
15a4e0a939 Print spaces instead of '0' for a non-idle user. Looks nicer. 1993-04-12 19:40:01 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00