bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "-z" parsing bug


From: Derek Robert Price
Subject: Re: "-z" parsing bug
Date: Wed, 26 Mar 2003 08:58:36 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02

Eric Siegerman wrote:

The command "cvs -z anything version" (i.e. "-z" not followed by
a compression level) doesn't detect the error, but instead
swallows the "anything".  That bit me when the command I typed
was "cvs -z -n update" :-(

The problem is in main(), in the 'z' case of the option-parsing
switch: atoi("anything") returns 0, which is a legal compression
level.

Fixed.  I'll check it in on both branches in a few minutes.

Derek

--
               *8^)

Email: address@hidden

Get CVS support at <http://ximbiot.com>!
--
I will not call the principal "spud head".
I will not call the principal "spud head".
I will not call the principal "spud head"...

         - Bart Simpson on chalkboard, _The Simpsons_







reply via email to

[Prev in Thread] Current Thread [Next in Thread]