Subject: bin/6335: midiplay -f option
To: None <gnats-bugs@gnats.netbsd.org>
From: Andreas Wrede <andreas@planix.com>
List: netbsd-bugs
Date: 10/20/1998 15:48:59
>Number: 6335
>Category: bin
>Synopsis: midiplay -f option
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Oct 20 12:50:01 1998
>Last-Modified:
>Originator: Andreas Wrede
>Organization:
Planix, Inc.
>Release: <NetBSD-current source date>-current Oct 20/98
>Environment:
System: NetBSD woffi 1.3H NetBSD 1.3H (WOFFI) #0: Tue Oct 20 12:44:52 EDT 1998 root@woffi:/local1/netbsd/netbsd-current/src/sys/arch/i386/compile/WOFFI i386
>Description:
The 'f' option is missing from the argument in the getopt() call.
>How-To-Repeat:
run midiplay -f, observe error msg
>Fix:
Apply fix:
*** src/usr.bin/midiplay/midiplay.c.orig Fri Aug 14 07:14:33 1998
--- src/usr.bin/midiplay/midiplay.c Tue Oct 20 15:40:04 1998
***************
*** 497,503 ****
struct synth_info info;
FILE *f;
! while ((ch = getopt(argc, argv, "?d:lmqt:vx")) != -1) {
switch(ch) {
case 'd':
unit = atoi(optarg);
--- 497,503 ----
struct synth_info info;
FILE *f;
! while ((ch = getopt(argc, argv, "?d:f:lmqt:vx")) != -1) {
switch(ch) {
case 'd':
unit = atoi(optarg);
>Audit-Trail:
>Unformatted:
midiplay does not accept the -f option