Bug 7338 - smbget skips leading slash when using a custom outputfile
Summary: smbget skips leading slash when using a custom outputfile
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.4
Classification: Unclassified
Component: Client Tools (show other bugs)
Version: 3.4.7
Hardware: Other Linux
: P3 normal
Target Milestone: ---
Assignee: Volker Lendecke
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-08 11:07 UTC by Axel
Modified: 2020-10-02 11:51 UTC (History)
0 users

See Also:


Attachments
Patch for 3.4 (2.87 KB, patch)
2010-07-04 04:53 UTC, Volker Lendecke
no flags Details
Patch for 3.5 (2.93 KB, patch)
2010-07-04 04:54 UTC, Volker Lendecke
no flags 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