Package: rwhod
Version: 0.17-10
Severity: normal
Tags: patch

The getopt() call in rwhod has a useless colon after "?" but it is missing
after "i". So the -i option (to select specific interfaces for binding) does
not expect an additional parameter and this causes a segfault after a few
lines.

The patch is trivial.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.21.5-ripieno (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages rwhod depends on:
ii  adduser                       3.105      add and remove users and groups
ii  libc6                         2.7-8      GNU C Library: Shared libraries
ii  passwd                        1:4.1.0-2  change and administer password and

rwhod recommends no packages.

-- no debconf information

Ludovico
-- 
<[EMAIL PROTECTED]>        #acheronte (irc.freenode.net) ICQ: 64483080
GPG ID: 07F89BB8          Jabber: [EMAIL PROTECTED] Yahoo: gardenghelle
-- This is signature nr. 3774
diff -Naur netkit-rwho-0.17.orig/rwhod/rwhod.c netkit-rwho-0.17/rwhod/rwhod.c
--- netkit-rwho-0.17.orig/rwhod/rwhod.c	2008-02-29 12:13:31.156710990 +0100
+++ netkit-rwho-0.17/rwhod/rwhod.c	2008-02-29 12:15:30.504478897 +0100
@@ -192,7 +192,7 @@
 		exit(1);
 	}
 
-	while ((opt = getopt(argc, argv, "bpaih?:fu:")) != EOF) {
+	while ((opt = getopt(argc, argv, "bpai:h?fu:")) != EOF) {
 	    switch (opt) {
 	      case 'b':
 		  use_broadcast = 1;

Reply via email to