Bug 7338 - smbget skips leading slash when using a custom outputfile
smbget skips leading slash when using a custom outputfile
Status: NEW
Product: Samba 3.4
Classification: Unclassified
Component: Client Tools
3.4.7
Other Linux
: P3 normal
: ---
Assigned To: Volker Lendecke
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-08 11:07 UTC by Axel
Modified: 2010-07-04 04:54 UTC (History)
0 users

See Also:


Attachments
Patch for 3.4 (2.87 KB, patch)
2010-07-04 04:53 UTC, Volker Lendecke
vl: review? (gd)
Details
Patch for 3.5 (2.93 KB, patch)
2010-07-04 04:54 UTC, Volker Lendecke
vl: review? (gd)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Axel 2010-04-08 11:07:20 UTC
When executing as non-root user this command: smbget --username="axel" --password="foo" --outputfile="/myfile.txt" smb://magina/temp/test.txt

The result file "myfile.txt" is not save in /myfile.txt but in the current directory. It seems that the leading slash is skipped by the smbget command.

Another example :
axel2@axel-asus$ smbget --username="axel" --password="foo" --outputfile="/tmp/myfile.txt" smb://magina/temp/test.txt
Can't open tmp/myfile.txt: No such file or directory
axel2@axel-asus$
Comment 1 Volker Lendecke 2010-07-04 04:53:09 UTC
Created attachment 5825 [details]
Patch for 3.4
Comment 2 Volker Lendecke 2010-07-04 04:54:19 UTC
Created attachment 5826 [details]
Patch for 3.5