Commit Graph

70 Commits

Author SHA1 Message Date
ache
f1b02742db Fix w -n to really show numeric addresses, close PR 402
Partially submitted by: henrich@msu.edu (Charles Henrich)
1996-06-17 15:46:25 +00:00
pst
5ebfd20516 Drop privileges if not using standard namelist or kernel file.
Submitted by:	smpatel (Sujal Patel)
1996-05-30 02:20:10 +00:00
ache
20993030f0 Change locale to LC_ALL, there is no bitmask 1995-10-26 11:03:08 +00:00
ache
db19b20652 Add setlocale LC_TIME|LC_CTYPE 1995-10-24 03:06:09 +00:00
ache
5b6fd9adec Fix one column wrong offset in previous change days->day 1995-10-08 23:16:45 +00:00
dima
39cde480f2 Print "1day" instead of "1days" 1995-09-22 00:50:37 +00:00
peter
bbe961035e Increase the tty column width from 2 to 3 characters.
This gives us more room to breath with tty names, especially with drivers
that support large numbers of ports..  eg: specialix and digiboard.

This does not actually change the current tty names, it just allows room
for reporting more characters if the drivers use them.
1995-09-04 01:22:54 +00:00
wollman
01cdce9796 Delete bogus referneces to timezone code internal header file `tzfile.h',
which is no longer bogusly installed in /usr/include.
1995-08-07 19:17:46 +00:00
peter
a066aa2292 When 'w' finds an IP address in the ut_host field, it attempts to do
a gethostbyname() on it.  That can take a long time...  (especially
if the reason the IP address is in there in the first place is because
login/rlogind/telnetd couldn't find it either....)
This patch reduces the gethostbyaddr lookup time to 2 seconds, the idea being
that if the local nameserver knows the answer, it'll answer within that time,
otherwise we dont care... :-)
This change doesn't do anything about whether or not w should do this in the
first place, but at least it will make the current behavior less painful.
Reviewed by:	David Greenman
1995-07-18 05:07:02 +00:00
peter
22102dfc58 Fix the 'w' command so that the -h option correctly supresses the heading
as per the manual page. Closes PR578.
Reviewed by:
Submitted by:	Kenneth D. Merry
Obtained from:
1995-07-17 04:38:30 +00:00
rgrimes
79e59e9123 Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
dg
ca04e6fd14 If an ut_host field in an utmp entry contains a ':' (e.g. for an xterm session)
w doesn't handle the non-'\0' terminated char arrays in struct utmp properly.

Submitted by:	jarle@idt.unit.no
1995-05-16 11:29:41 +00:00
dg
43d095fa58 Install with default BINOWN (as it once used to be). 1995-04-15 03:31:19 +00:00
dg
920072075e Install setgid kmem rather than setuid root. The problem with procfs that
was breaking this before has been fixed.
1995-04-15 03:25:52 +00:00
smace
d437a0e4d0 Correct the grammar for the label of the number of users.
It is plural when zero and >1 users are logged in.
1995-02-18 08:24:16 +00:00
ache
5258852f38 idle time == 0 printed now as "-" like in good old BSD
skip cua* 3 chars as tty* 3 lchars
1994-09-27 01:00:18 +00:00
wollman
dbffaf23d1 Make it set-uid until procfs is fixed. 1994-08-11 20:11:00 +00:00
wollman
ca57e58947 More merry makefile munging for man page compatability. 1994-08-05 19:00:04 +00:00
dg
17e7606224 Converted 'vmunix' to 'kernel'. 1994-08-05 09:14:37 +00:00
rgrimes
f9ab90d9d6 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00