Subject: | tar subroutine: spaces in tar file, -D option |
This applies to SmbClientParser 2.7
On both
Suse 9.1
smbclient Version 3.0.4-SUSE
OR
Redhat 9.0(a little outdated but smbclient has not changed)
smbclient Version 3.0.4
These bugs relate to the tar subroutine. There are actually two bugs that probably have not come up since people don't use tar but for my application it makes things easier.
*First bug:
When using $smb->tar('c','/data/somehost/some share/save.tar')
OR
$smb->tar('c','/data/somehost/some share/save.tar')
It tries to create this command
smbclient password -U user "//somehost/some share" -Tc /data/somehost/some share/save.tar / -D "/"
Quotes are not around the tar file name(/data/somehost/some share.tar). So a tar file or path with spaces is incorrectly interpreted. Including spaces in file names is a terrible idea but it still happens.
*Second bug
The option -D does not follow -T and so is not recoginized... but we are left with / "/" so the root of the share is put into the tar file TWICE.
I modified the tar subroutine as attached, keep in mind I am not an experienced perl programmer.
Thanks for reading this and thanks for making this module!
Message body not shown because it is not plain text.