Package: 6tunnel
Version: 0.11rc2-2
Severity: important

I'm using 6tunnel on an armel guruplug and the program exitted without doing
anything all the time. Digging into the source revealed that the output of
getopt() was being stored in a char and compared to -1. On this
architechture char is by default "unsigned" which means the test always
fails.

Changing it to use an integer makes it work correctly. See attached patch.

-- System Information:
Debian Release: 5.0.6
Architecture: armel (armv5tel)

Kernel: Linux 2.6.32-00007-g56678ec (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 6tunnel depends on:
ii  libc6                       2.7-18lenny6 GNU C Library: Shared libraries

6tunnel recommends no packages.

6tunnel suggests no packages.

-- no debconf information
--- 6tunnel.c   2005-08-18 17:02:50.000000000 +0000
+++ 6tunnel.c   2010-11-06 22:14:36.000000000 +0000
@@ -508,7 +508,8 @@
 {
        int force = 0, lsock, csock, one = 0, jeden = 1, local_port;
        int detach = 1, listen6 = 0, sa_len, conn_limit = 0;
-       char optc, *username = NULL, *bind_host = NULL;
+       char *username = NULL, *bind_host = NULL;
+       int optc;
        struct sockaddr *sa;
        struct sockaddr_in laddr, caddr;
        struct sockaddr_in6 laddr6;

Reply via email to