smbtar cannot recognize space character in filename
SATOH Fumiyasu
fumiya at cij.co.jp
Wed Jun 9 11:56:35 GMT 1999
Hi. My friend has a problem that smbtar cannot recognize space character
in specified filenames. He tried to execute following command line
to back file "long file name" up:
$ smbtar -s SERVER -p PASSWORD -x SHARE -u username -t /tmp/backup.tar \
"long file name"
but smbtar tried to include three files as 'long', 'file' and 'name'. :-(
Here is the patch for this problem:
*** smbtar.dist Fri Mar 5 21:35:26 1999
--- smbtar Tue Jun 1 15:46:07 1999
***************
*** 161,164 ****
eval $SMBCLIENT "'\\\\$server\\$service'" "'$password'" -U "'$username'" \
-E -N $log -D "'$cdcmd'" ${clientargs} \
! -T${tarcmd}${tarargs} $blocksize $newer $tapefile $* $verbose
--- 161,164 ----
eval $SMBCLIENT "'\\\\$server\\$service'" "'$password'" -U "'$username'" \
-E -N $log -D "'$cdcmd'" ${clientargs} \
! -T${tarcmd}${tarargs} $blocksize $newer $tapefile '"$@"' $verbose
The "$@" is a feature of /bin/sh. (see sh(1))
But, is the "$@" a generic feature of /bin/sh? I don't know...
-- >8 -- signature -- >8 --
FROM : SATOH Fumiyasu <fumiya at cij.co.jp>
WEB : http://www.bento.ad.jp/~fumiya/
WEB(LAN): http://kumasun.si.ykhm.cij.co.jp/
SAMBA : http://samba.bento.ad.jp/
More information about the samba
mailing list