jkoshy
25789e916f
Cosmetic fix. Compute header field widths from UT_{HOST,LINE,NAME}SIZE
...
instead of hardcoding header line.
PR: 6325
1998-05-21 08:46:48 +00:00
jkoshy
b964b328b6
Allow `w' to treat a corrupted "utmp" as a non fatal error.
...
PR: bin/2832
1998-05-14 10:13:24 +00:00
phk
30a62a3f70
Like most Unices FreeBSD should have a larger tty field at least
...
as large as UT_LINESIZE (/usr/include/utmp.h). If the tty name is logged
with this size why isn't the w command reporting it?
(We should probably report the tty/cua prefix then as well ? /phk)
PR: 4187
Reviewed by: phk
Submitted by: Jorge M. Goncalves <ee96199@tom.fe.up.pt>
1998-04-19 18:32:01 +00:00
steve
a4f109814d
Reword using who.1 as a good example of where to start.
...
Submitted by: bde
1998-03-22 17:39:08 +00:00
steve
e790f0b455
Reword the synopsis line so that it makes sense.
1998-01-12 00:47:52 +00:00
alex
c9da542ee5
-Wall cleanup.
1997-12-28 17:50:10 +00:00
ache
b5347d93d3
If uptime < 1 min print in in secs otherwise we got confusing message
...
"up 1 user"
1997-10-13 15:17:03 +00:00
ache
684eb8f09f
Document newly added -d option and fix usage string
1997-09-12 02:26:12 +00:00
ache
0357dcdb99
The "-d" option dumps out the entire process list on a per controlling
...
tty basis, instead of just the top level process.
Submitted by: terry
1997-09-12 02:22:21 +00:00
charnier
98f0299552
Revert some casts I introduced.
...
Requested by: Bruce.
1997-08-26 06:59:34 +00:00
charnier
0beb621f63
Typo in usage(). Err -> errx when testing allocations.
1997-08-25 06:42:19 +00:00
imp
141381e1cb
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 04:34:07 +00:00
yokota
479436ac99
Made sure the string formated by strftime() is properly
...
null-terminated.
Should go to RELENG_2_1 and RELENG_2_2.
Reviewed by guido@freebsd.org .
1997-03-07 10:54:19 +00:00
peter
f390c26dd9
Revert $FreeBSD$ to $Id$
1997-02-22 19:58:13 +00:00
danny
da4de4acb6
Reduce the command field width by one when idle time is > 9 days, to
...
eliminate unsightly blank line.
Possibly a 2.2 candidate.
1997-02-11 10:49:25 +00:00
wosch
4bcfb053ec
Sort cross references.
1997-01-15 23:25:55 +00:00
jkh
808a36ef65
Make the long-awaited change from $Id$ to $FreeBSD$
...
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
wosch
0426c0af88
comma typos
1996-12-23 23:09:55 +00:00
ache
25af7e1053
Increase username field to reflect utmp changes
1996-12-05 17:00:16 +00:00
ache
aa108247fd
Do not print herror message, if w -n gethostname failed to be 100%
...
compatible with any program
Suggested by: peter
1996-06-17 20:07:44 +00:00
ache
6e9cd1d33a
Fix xterm/screen/(any program using just :xxx form) compatibility
1996-06-17 19:23:38 +00:00
ache
28e5db0271
Don't try convert "-" to numeric form for -n option
1996-06-17 18:35:16 +00:00
ache
0bf8c3c1df
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
10d32f7a70
Drop privileges if not using standard namelist or kernel file.
...
Submitted by: smpatel (Sujal Patel)
1996-05-30 02:20:10 +00:00
ache
ed337c8386
Change locale to LC_ALL, there is no bitmask
1995-10-26 11:03:08 +00:00
ache
bba89021dc
Add setlocale LC_TIME|LC_CTYPE
1995-10-24 03:06:09 +00:00
ache
89926b7c1c
Fix one column wrong offset in previous change days->day
1995-10-08 23:16:45 +00:00
dima
b5ee2c7636
Print "1day" instead of "1days"
1995-09-22 00:50:37 +00:00
peter
136c23f685
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
fc1f6c1d76
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
ee0afa6a32
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
acdf972e19
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
a14d555c87
Remove trailing whitespace.
1995-05-30 06:41:30 +00:00
dg
3f349e7ec8
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
b824780548
Install with default BINOWN (as it once used to be).
1995-04-15 03:31:19 +00:00
dg
b0ecb5429e
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
5001befdac
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
8802e34cc8
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
a181785932
Make it set-uid until procfs is fixed.
1994-08-11 20:11:00 +00:00
wollman
3ac06aac07
More merry makefile munging for man page compatability.
1994-08-05 19:00:04 +00:00
dg
6b466831f4
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