cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-498151 ] FTP tests fail on 64-bit Solaris (7.9.2)

From: <noreply_at_sourceforge.net>
Date: Mon, 31 Dec 2001 11:23:58 -0800

Bugs item #498151, was opened at 2001-12-31 11:23
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=498151&group_id=976

Category: ftp
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Philip Gladstone (philipjsg)
Assigned to: Daniel Stenberg (bagder)
Summary: FTP tests fail on 64-bit Solaris (7.9.2)

Initial Comment:
One of the FTP tests fail when CURL is built using CC=cc and CFLAGS=-xarch=v9 (i.e. 64-bit and
sun's compiler).

The reason for this is in the function ftp_use_port in lib/ftp.c, under the IPV4 section, the variable
'size' is declared as size_t -- it should be declared as socklen_t. This error was not made (as far as
I can tell) in the IPV6 section.

Once this is fixed, a surplus cast of &size to (socklen_t*) can be removed.

Then the FTP tests complete as expected.

----------------------------------------------------------------------

You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=498151&group_id=976
Received on 2001-12-31