Bug 578 - w -h doesn't suppress "USER TTY"...etc.
Summary: w -h doesn't suppress "USER TTY"...etc.
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1995-07-01 17:30 UTC by ken
Modified: 1995-07-01 17:30 UTC (History)
0 users

See Also:


Attachments
file.diff (767 bytes, patch)
1995-07-01 17:30 UTC, ken
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ken 1995-07-01 17:30:00 UTC
	/usr/bin/w -h only suppresses the 'uptime' type header, not the
"USER    TTY FROM              LOGIN@  IDLE WHAT" header.  Under 1.1, the
default behavior was to suppress all headers.  It changed as of 2.0 to the
current behavior.  Looking at the 4.4 BSD-Lite source tree, it seems that
that's where the behavior change came in.  (i.e. it isn't unique to
FreeBSD)

Fix: This is a simple, one-line fix.  It moves a } down a couple of
lines.  Hopefully I did the diff right....


	
How-To-Repeat: 
	/usr/bin/w -h on any 2.0 or later FreeBSD machine.
Comment 1 Peter Wemm freebsd_committer freebsd_triage 1995-07-17 05:38:52 UTC
State Changed
From-To: open->closed

Suggested fix applied in rev 1.6 of w.c