OpenSolaris

Printable Version Enter a New Search
Bug ID 6682632
Synopsis anonymous ftp sendfile failure
State 7-Fix in Progress (Fix is in progress)
Category:Subcategory network:ftp_server
Keywords perf
Responsible Engineer Ashok Kumar
Reported Against snv_105
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_113
Fixed In
Release Fixed
Related Bugs 6690693 , 6773576 , 6876157 , 6897824
Submit Date 1-April-2008
Last Update Date 3-August-2009
Description
Anonymous ftp worked in snv_82. We performed a liveupgrade to snv_85.

Anonymous ftp file transfer fails as follows:

13:18:irperf 179# ftp irperf
Connected to irperf.
220 irperf FTP server ready.
Name (irperf:eoin): anonymous
331 Guest login ok, send your complete e-mail address as password.
Password:
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd pub
250 CWD command successful.
ftp> ls file
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
file
226 Transfer complete.
remote: file
6 bytes received in 6.9e-05 seconds (84.87 Kbytes/s)
ftp> get file
200 PORT command successful.
150 Opening BINARY mode data connection for file (0 bytes).
421 Service not available, remote server has closed connection
ftp> 


Truss output shows:
fstat64(4, 0x080455D0)                          = 0
sigaction(SIGPIPE, 0x08045500, 0x08045580)      = 0
sigaction(SIGALRM, 0x08045500, 0x08045580)      = 0
alarm(1200)                                     = 0
xstat(2, "/lib/libsendfile.so.1", 0x08044C18)   Err#2 ENOENT
xstat(2, "/usr/lib/libsendfile.so.1", 0x08044C18) Err#2 ENOENT
xstat(2, "/usr/local/lib/libsendfile.so.1", 0x08044C18) Err#2 ENOENT
xstat(2, "/usr/sfw/lib/libsendfile.so.1", 0x08044C18) Err#2 ENOENT
write(2, " l d . s o . 1 :   i n .".., 81)      = 81
write(2, "\n", 1)                               = 1
write(2, " l d . s o . 1 :   i n .".., 114)     = 114
write(2, "\n", 1)                               = 1
lwp_self()                                      = 1

If I manually copy /lib/libsendfile.so.1 to the anonymous ftp
lib directory, the file transfer succeeds.

Running ftpconfig does not copy the file into place.
Work Around
Manually copy /lib/libsendfile.so.1 to the anonymous ftp lib directory
Comments
N/A