[BusyBox 0000085]: BusyBox 1,0 ftpput and source file path names
bugs at busybox.net
bugs at busybox.net
Thu Dec 8 06:20:00 UTC 2005
The following issue has been CLOSED
======================================================================
http://busybox.net/bugs/view.php?id=85
======================================================================
Reported By: k1mgy
Assigned To: uClibc
======================================================================
Project: BusyBox
Issue ID: 85
Category: New Features
Reproducibility: N/A
Severity: tweak
Priority: normal
Status: closed
Resolution: open
Fixed in Version:
======================================================================
Date Submitted: 02-04-2005 11:12 PST
Last Modified: 12-07-2005 22:19 PST
======================================================================
Summary: BusyBox 1,0 ftpput and source file path names
Description:
BusyBox ftpput will fail (the server will return an error 553) when the
source file specification of an ftpput call is made with a source file
name that includes its path. I did a search on this issue and found that
some other ftp clients suffer the same malady.
The solution I've built is very simple. Strip the path from the
local_path specifier just prior to making the call to ftpcmd("STOR"...
// place this in the variable definition section
char cFnBuff[32]; // enough for me
ftpgetput.c approx line 276:
strcpy(cFnBuff,basename(local_path));
response = ftpcmd("STOR ", cFnBuff, control_stream, buf);
Therefore, issuing ftpput -u me -p pwd ftp.hostname.com
/long/path/to/target /long/path/to/source/file
will now work.
Perhaps this should be patched into frpgetput.c?
======================================================================
----------------------------------------------------------------------
k1mgy - 02-04-05 11:15
----------------------------------------------------------------------
Sorry, I put this mistakenly in buildroot. It belongs, I think, in
BusyBox.
However there's no option for me to move it.
Would someone with rights to do so please move this to busybox? Thanks!
----------------------------------------------------------------------
landley - 12-07-05 22:19
----------------------------------------------------------------------
svn 12184
Issue History
Date Modified Username Field Change
======================================================================
02-04-05 11:12 k1mgy New Issue
02-04-05 11:15 k1mgy Note Added: 0000041
03-16-05 12:14 andersen Status new => assigned
03-16-05 12:14 andersen Assigned To => uClibc
03-20-05 18:28 vapier Project buildroot => BusyBox
12-07-05 22:19 landley Status assigned => closed
12-07-05 22:19 landley Note Added: 0000742
======================================================================
More information about the uClibc-cvs
mailing list