Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jun 2004 17:48:27 -0400
From:      Ken Smith <kensmith@cse.Buffalo.EDU>
To:        Max Khon <fjoe@samodelkin.net>
Cc:        Ken Smith <kensmith@cse.Buffalo.EDU>
Subject:   Re: cvs commit: src/sys/sys mbuf.h src/sys/kern uipc_mbuf.c uipc_syscalls.c src/usr.bin/netstat mbuf.c src/lib/libc/sys sendfile.2
Message-ID:  <20040617214827.GB6029@electra.cse.Buffalo.EDU>
In-Reply-To: <20040617204813.GA10670@samodelkin.net>
References:  <200406170008.i5H08NDt085108@repoman.freebsd.org> <20040617173854.GJ61448@elvis.mu.org> <20040617182031.GA8170@samodelkin.net> <20040617184518.GB831@electra.cse.Buffalo.EDU> <20040617204813.GA10670@samodelkin.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 18, 2004 at 03:48:13AM +0700, Max Khon wrote:
> Hi, Ken!

Hi, Max!  ;-)

I hope none of this is taken personally.  I have some relatively new
responsibilities being on re@ and I'm using this as a way to make sure
I really do understand how things are supposed to work.  I think I have
a reasonably good handle on it but it never hurts to test it to make
sure.  :-)

> On Thu, Jun 17, 2004 at 02:45:18PM -0400, Ken Smith wrote:
> 
> > > > This will break scripts.
> > > > 
> > > > Please back out the netstat change.
> > > 
> > > No problems, but can you tell me which scripts or programs
> > > has become broken after this change?
> > 
> > The scripts that are now potentially broken don't necessarily need to
> > be in the base system.
> 
> I did not say that I am interested in base system scripts only :)

Ok, sorry about that.

> > They could very well be scripts Alfred wrote
> > and uses himself for his own purposes.  Once a branch goes into -STABLE
> > status we try to not make 'user-visible' changes to it unless they are
> > bugfixes or do not alter the way something had worked.
> 
> As Bosko noted the change _adds_ a few lines to netstat -m output.
> Old output is not altered.
> Frankly speaking I can't imagine a script that could correctly parse
> netstat -m output before, but now is broken.

I may work with student programmers too much, but I'm afraid my imagination
is a bit better than yours in this case.  :-(

I don't defend it as being the right way to do things, but in cases where
the user is interested in "most of" the output of something they will often
take the approach of removing things they don't want instead of selecting
things they do want.  This change would add an extra line to what the
next stage of processing would see if that approach is used.

This particular change is a case of nit-picking.  It's small, hard to
imagine how it could effect someone, etc.  But even Bosko said more
caution 'next time' would be good, I'm just emphasizing why.  To some
extent the output of programs has been an API ever since pipes were
invented.  And unless I'm severely mistaken one of the things we have
tried to avoid is changing API's once a branch goes -STABLE.

-- 
						Ken Smith
- From there to here, from here to      |       kensmith@cse.buffalo.edu
  there, funny things are everywhere.   |
                      - Theodore Geisel |



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040617214827.GB6029>