bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-inetutils] bug in ftp


From: ForestCreature
Subject: [bug-inetutils] bug in ftp
Date: Thu, 13 Jan 2005 17:52:29 +0200

Hello!

I typed :

     [slyfox]~$ ftp
     ftp> open plombir 34661
     plombir: bad port number-- 34661
     usage: open host-name [port]

I use inetutils-1.4.2 on linux platform (i686 linux-2.4.26).
ftp should connect on ports 1-65535 but it doesn't.
ftp thinks that prots above 32767 are below zero.
      inetutils-1.4.2/ftp/cmds.c
...
164:short port; /* -32768..32767 */
...
180:port = atoi(argv[2]); /*-32768..32767  */
                if (port <= 0) {
...
it's not a very good idea to use signed integers here.
Thanks a lot :]
Please reply me if you've read this letter :]
(sorry for my bad English)
byebye




reply via email to

[Prev in Thread] Current Thread [Next in Thread]