Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Simon Burge <simonb@netbsd.org>
List: source-changes
Date: 06/08/2000 06:30:41
Module Name: basesrc
Committed By: simonb
Date: Thu Jun 8 13:30:41 UTC 2000
Modified Files:
basesrc/bin/ps: nlist.c print.c ps.c
Log Message:
Fix handling of "ps U<user>" where <user> ended it 't' - now if the
first argument doesn't start with a '-' and ends in 't', the 't' only
gets converted to a 'T' (for listing processes on the current tty)
if it doesn't contain any other command line option characters that
take an argument. Problem noticed by ITOH Yasufumi on tech-userlevel.
If the 'start' format was the last column, the width wouldn't be set
and started() output a zero length string instead of a string the right
length - fix header width calculations so the the last column is handled
the same all others. This only showed up for 'start' because started()
knew that the column header is the same width and the field itself...
Update copyrights.
To generate a diff of this commit:
cvs rdiff -r1.16 -r1.17 basesrc/bin/ps/nlist.c
cvs rdiff -r1.54 -r1.55 basesrc/bin/ps/print.c
cvs rdiff -r1.39 -r1.40 basesrc/bin/ps/ps.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.