Subject: bin/24917: fingerd(8) incorrectly logs invalid arguments
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jeffi@rcn.com>
List: netbsd-bugs
Date: 03/25/2004 23:09:14
>Number:         24917
>Category:       bin
>Synopsis:       fingerd(8) incorrectly logs invalid arguments
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 25 23:10:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jeff Ito
>Release:        1.6ZK
>Organization:
>Environment:
NetBSD netbsd 1.6ZK NetBSD 1.6ZK (LAB) #2: Mon Mar 22 10:37:04 EST 2004  jeff@netbsd:/q/nbsd/src/sys/arch/i386/compile/LAB i386
>Description:
fingerd(8) incorrectly logs invalid arguments
>How-To-Repeat:
> /usr/libexec/fingerd -X

> tail -f /var/log/messages
Mar 25 17:51:57 netbsd fingerd[15889]: illegal option -- ?
>Fix:
Index: fingerd.c
===================================================================
RCS file: /cvs/nbsd/src/libexec/fingerd/fingerd.c,v
retrieving revision 1.20
diff -u -r1.20 fingerd.c
--- fingerd.c   7 Aug 2003 09:46:38 -0000       1.20
+++ fingerd.c   25 Mar 2004 23:04:48 -0000
@@ -115,7 +115,7 @@
                        break;
                case '?':
                default:
-                       err("illegal option -- %c", ch);
+                       err("illegal option -- %c", optopt);
                }
 

>Release-Note:
>Audit-Trail:
>Unformatted: