The Samba-Bugzilla – Bug 7563
smbclient - symlink command
Last modified: 2010-08-16 18:34:33 UTC
Creation of symlink using smbclient is buggy. The smbclient version 3.5.4 prepends a substring containing initial directory in the symlink (and the symlink is not working as a result).
/usr/bin/smbclient '//DATASERVER/D/' -U 'david.rezac' -d0 -D "start/" \
-c 'symlink "../../../07-XYZ/10-07-10-asdfg/" \
(ls -L at the server, in directory start/2010/04-abcd/10-04-13/7-XYZ/)
lrwxrwxrwx 1 david.rezac users 44 2010-07-09 06:24
10-07-10-asdfg -> \start\../../../07-XYZ/10-07-10-asdfg/
Note extra "\start\" in the symlink. Even when the initial directory is not specified, extra "\" is prepended.
The smb command to create symlink sent over network by smbclient already contains the bad string. However, the creation is completed "sucessfully".
When I use smbclient version 3.0.26, symlink creation is working as expected.
Created attachment 5907 [details]
git am fix for 3.5.x.
Can you please test this fix. I think it should solve the problem.