Package: tinyirc
Version: 1:1.1.dfsg.1-1
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Running tinyirc against a server on a low port does not work. It just
falls back to the default port:
bjorn@nemi:/tmp/u$ tinyirc bjorn 127.0.0.1 255
TinyIRC 1.1 Copyright (C) 1991-1996 Nathan Laredo
This is free software with ABSOLUTELY NO WARRANTY.
For details please see the file COPYING.
*** User is Bjørn Mork
*** trying port 6667 of 127.0.0.1
*** 127.0.0.1 refused connection, aborting
Looking at the code, the reason is obvious: It's trying to guess whether the
arg is numeric, and therefore a port, by looking at the return value of atoi():
else if (atoi(argv[i]) > 255)
IRCPORT = atoi(argv[i]);
I don't know how to fix this without rewriting the argument parsing from
scratch. Which probably should be done...
Anyway, you may want to document this fact so others aren't as surprised as
I was.
Bjørn
- -- System Information:
Debian Release: 6.0.1
APT prefers stable
APT policy: (700, 'stable'), (600, 'unstable'), (500, 'stable-updates'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
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 tinyirc depends on:
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libncurses5 5.7+20100313-5 shared libraries for terminal hand
tinyirc recommends no packages.
tinyirc suggests no packages.
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAk3D62UACgkQ10rqkowbIsnGUACggEqMvmQ05y+Z1xUlBaUcQXYf
w3kAn2claz5KstcOVSPkwSlpNs3hVLWb
=C4UQ
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]