Subject: bin/11427: Problem with rcs tools / diff / libc
To: None <gnats-bugs@gnats.netbsd.org>
From: None <pappires@ppires.org>
List: netbsd-bugs
Date: 11/05/2000 20:34:13
>Number: 11427
>Category: bin
>Synopsis: ci fails because diff complains of illegal argument
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 05 20:34:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:
>Release: 2000/11/04
>Organization:
>Environment:
System: NetBSD mateus.ppires.org 1.5I NetBSD 1.5I (MATEUS-20001102) #1: Fri Nov 3 03:56:33 BRST 2000 Pappires@mateus.ppires.org:/usr/src/sys/arch/i386/compile/MATEUS-20001102 i386
>Description:
Whenever trying to use ci to update a file in RCS, it fails when
invoking diff, and diff returns a message complaining about an illegal
option ``-'', as shown below, in the "How-To-Repeat" section.
I tried to track the problem and noticed that neither rcs-related
tools nor diff have had changes in a _long_ time (generally more than
a year). So I turned to getopt and getopt_long in the libc as other
possible candidates to be investigated. That makes sense to me, as
the last time I used RCS tools I was using -current from July/2000,
and latest modification in getopt_long was in 2000/08/25.
>How-To-Repeat:
Create a file (say "test.c") and check in the initail revision, then
modify it and try a new check-in.
% ci -l test.c
RCS/test.c,v <-- test.c
new revision: 1.2; previous revision: 1.1
enter log message, terminated with single '.' or end of file:
>> Any fool description.
>> .
diff: illegal option -- -
/usr/bin/diff: Try `/usr/bin/diff --help' for more information.
ci: RCS/test.c,v: diff failed
ci aborted
>Fix:
Unfortunately, I cannot investigate any further to say.
>Release-Note:
>Audit-Trail:
>Unformatted: