Bug 16649

Summary: /bin/lastcomm: output contains extraneous trailing spaces
Product: Base System Reporter: Ryan Thompson <ryan>
Component: binAssignee: Mike Heffner <mikeh>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.4-STABLE   
Hardware: Any   
OS: Any   

Description Ryan Thompson 2000-02-11 06:40:00 UTC
	lastcomm output contains extra trailing spaces after the start or
	stop time is displayed, causing lines to wrap needlessly on 80
	character terminals.

Fix: 

Apply the following simple patch to remove the needless extra
	spaces from the two fields.  The change is a cosmetic one, but
	I've been annoyed long enough with the wrapped lines on my 
	terminal.

===================================================================
RCS file: lastcomm.c,v
retrieving revision 1.1
diff -r1.1 lastcomm.c
212c212
< 			(void)printf("%.16s ", ctime(&ab.ac_btime));
---
> 			(void)printf("%.16s", ctime(&ab.ac_btime));
219c219
< 			(void)printf("%.16s ", 
---
> 			(void)printf("%.16s",
How-To-Repeat: 
	# lastcomm
Comment 1 freebsd 2000-02-11 06:41:46 UTC
On Thu, 10 Feb 2000, Ryan Thompson wrote:

> 
> >Number:         16649
> >Category:       bin
> >Synopsis:       /bin/lastcomm: output contains extraneous trailing spaces

		   ^^ /usr/bin, naturally.  Sorry :-(

> >Confidential:   no
> >Severity:       non-critical
> >Priority:       low
> >Responsible:    freebsd-bugs
> >State:          open
> >Quarter:        
> >Keywords:       
> >Date-Required:
> >Class:          sw-bug
> >Submitter-Id:   current-users
> >Arrival-Date:   Thu Feb 10 22:40:00 PST 2000
> >Closed-Date:
> >Last-Modified:
> >Originator:     Ryan Thompson
> >Release:        FreeBSD 3.4-STABLE i386
> >Organization:
> SaskNow Technologies
> >Environment:
> 
> >Description:
> 
> 	lastcomm output contains extra trailing spaces after the start or
> 	stop time is displayed, causing lines to wrap needlessly on 80
> 	character terminals.
> 
> >How-To-Repeat:
> 
> 	# lastcomm
> 
> >Fix:
> 	
> 	Apply the following simple patch to remove the needless extra
> 	spaces from the two fields.  The change is a cosmetic one, but
> 	I've been annoyed long enough with the wrapped lines on my 
> 	terminal.
> 
> ===================================================================
> RCS file: lastcomm.c,v
> retrieving revision 1.1
> diff -r1.1 lastcomm.c
> 212c212
> < 			(void)printf("%.16s ", ctime(&ab.ac_btime));
> ---
> > 			(void)printf("%.16s", ctime(&ab.ac_btime));
> 219c219
> < 			(void)printf("%.16s ", 
> ---
> > 			(void)printf("%.16s",
> 
> 
> >Release-Note:
> >Audit-Trail:
> >Unformatted:
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-bugs" in the body of the message
> 

-- 
--
  Ryan Thompson <ryan@sasknow.com>	50% Owner, Sysadmin
  SaskNow Technologies     		http://www.sasknow.com
  #106-380 3120 8th St E   		Saskatoon, SK  S7H 0W2
Comment 2 Mike Heffner freebsd_committer freebsd_triage 2001-06-16 08:10:32 UTC
State Changed
From-To: open->analyzed

Fix committed to current. 


Comment 3 Mike Heffner freebsd_committer freebsd_triage 2001-06-16 08:10:32 UTC
Responsible Changed
From-To: freebsd-bugs->	 mikeh

My MFC reminder.
Comment 4 Mike Heffner freebsd_committer freebsd_triage 2001-06-30 16:16:43 UTC
State Changed
From-To: analyzed->closed

Fix has been MFC'd.