Subject: bin/13008: chat doesn't accept the -E option
To: None <gnats-bugs@gnats.netbsd.org>
From: None <smb@research.att.com>
List: netbsd-bugs
Date: 05/22/2001 23:46:35
>Number: 13008
>Category: bin
>Synopsis: chat incorrectly ignores the -E option
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 22 23:47:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Steven M. Bellovin
>Release: 1.5.1b2 (also 1.5.1b1, and I think -current)
>Organization:
AT&T Labs Research
>Environment:
System: NetBSD berkshire.research.att.com 1.5.1_BETA2 NetBSD 1.5.1_BETA2 (BERKSHIRE) #2: Thu May 17 16:54:05 EDT 2001 smb@berkshire.research.att.com:/usr/src/sys/arch/i386/compile/BERKSHIRE i386
>Description:
Run 'chat' with -E -- it fails
>How-To-Repeat:
see above
>Fix:
The problem is that 'E' is missing from the getopt string.
The fix is fairly obvious....
RCS file: /cvsroot/basesrc/usr.sbin/pppd/chat/chat.c,v
retrieving revision 1.18.8.2
diff -r1.18.8.2 chat.c
276c276
< while ((option = getopt(argc, argv, ":evVf:t:r:sST:U:")) != -1) {
---
> while ((option = getopt(argc, argv, ":eEvVf:t:r:sST:U:")) != -1) {
>Release-Note:
>Audit-Trail:
>Unformatted: