Bug 646 - smbclient inconsistent
Summary: smbclient inconsistent
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: smbclient (show other bugs)
Version: 3.0.0
Hardware: All other
: P3 normal
Target Milestone: none
Assignee: Gerald (Jerry) Carter (dead mail address)
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-17 17:26 UTC by Peter Bailey
Modified: 2005-11-14 09:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Bailey 2003-10-17 17:26:24 UTC
smbclient isn't handling things correctly somewhere:
I've written a small program and told my shell to protect these arguments:
(bash> smbclient -N //host/share -c 'get "directory/filename with spaces.ext"')

smbclient
-N
//host/share/
-c
get "directory/filename with spaces.ext"

or with

ls "directory/filename with spaces.ext"

Specifically when there are spaces in the filename (maybe other characters), the
"get" command fails with this error:
--
NT_STATUS_NO_SUCH_FILE listing \directory/filename with spaces.ext
--

where "ls" gives this:
--
  filename with spaces.ext      A 699406336  Sun Sep 28 23:45:50 2003

                38113 blocks of size 1048576. 184 blocks available
--


I have a feeling it's a fat finger error, as that slash in front of the get
error isn't supposed to be there and the ls returns just what I wanted.

ps I'm using the debian package marked only as 3.0.0-debian, which should be
3.0.0 final.
Comment 1 Gerald (Jerry) Carter (dead mail address) 2004-03-22 06:02:52 UTC
please retest 3.0.3pre1.  if you still see the error, 
please provide more information such as a network trace or 
level 10 debug log of the server (if running against Samba).  
Thanks.
Comment 2 Gerald (Jerry) Carter (dead mail address) 2004-04-19 07:32:28 UTC
no response.  Closing.
Comment 3 Gerald (Jerry) Carter (dead mail address) 2005-11-14 09:24:24 UTC
database cleanup