[Top][All Lists]

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

"-z" parsing bug

From: Eric Siegerman
Subject: "-z" parsing bug
Date: Tue, 25 Mar 2003 20:06:52 -0500
User-agent: Mutt/1.2.5i

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


|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.        address@hidden
|  |  /
A distributed system is one on which I cannot get any work done,
because a machine I have never heard of has crashed.
        - Leslie Lamport

reply via email to

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