Bug 568283 - NetKit ftp client can not put file starting with space
Summary: NetKit ftp client can not put file starting with space
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: ftp
Version: 12
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Jiri Skala
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-25 09:59 UTC by Vitaliy Tokarev
Modified: 2014-11-09 22:32 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-25 10:06:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vitaliy Tokarev 2010-02-25 09:59:35 UTC
Description of problem:


Version-Release number of selected component (if applicable): ftp-0.17-51.fc12.i686


How reproducible:


Steps to Reproduce:
1. Touch the file ' test' and write something in it.

$ touch ' test'
$ echo "This is example text." > ' test'
$ ls -hl ~/\ test
-rw-rw-r-- 1 gav gav 14 2010-02-25 12:54 /home/gav/ test

2. Login to ftp server.

$ ftp ftp.example.org
...
Remote system type is UNIX.
Using binary mode to transfer files.

3. Go to writeable directory.

ftp> cd /public/tmp
250 CWD command successful

4. Try to put file ' test' to server.

ftp> put "/home/gav/\ test"
local: /home/gav/\ test remote: /home/gav/\ test
local: /home/gav/\ test: No such file or directory
ftp> put "/home/gav/ test"
local: /home/gav/ test remote: /home/gav/ test
227 Entering Passive Mode (xxx,xxx,xxx,xxx,189,198).
550 /home/gav/ test: No such file or directory

5. Try to get file from server (I uploaded it with gnome-vfs-ftp).

ftp> ls
227 Entering Passive Mode (xxx,xxx,xxx,xxx,199,37).
150 Opening ASCII mode data connection for file list
-rw-r--r--   1 (?)      (?)             4 Feb 25 09:33  test
226 Transfer complete

ftp> get " test"
local:  test remote:  test
227 Entering Passive Mode (xxx,xxx,xxx,xxx,133,36).
150 Opening BINARY mode data connection for  test (4 bytes)
226 Transfer complete
4 bytes received in 0.000204 secs (19.61 Kbytes/sec)
  
Actual results:

We are can get files starting with space, but can not put them.

Comment 1 Vitaliy Tokarev 2010-02-25 10:06:55 UTC
I did mistake with writing put command. Correct string this:

ftp> put "/home/gav/ test" " test"
local: /home/gav/ test remote:  test
227 Entering Passive Mode (xxx,xxx,xxx,xxx,xxx,219).
150 Opening BINARY mode data connection for  test
226 Transfer complete
4 bytes sent in 5.2e-05 secs (76.92 Kbytes/sec)

So, always is ok. 

Sorry.


Note You need to log in before you can comment on or make changes to this bug.