Skip Menu |

This queue is for tickets about the Filesys-SmbClientParser CPAN distribution.

Report information
The Basics
Id: 6838
Status: new
Priority: 0/
Queue: Filesys-SmbClientParser

People
Owner: Nobody in particular
Requestors: ijwilson [...] kcbx.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.7
Fixed in: (no value)

Attachments


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!
Download updated_tar
application/octet-stream 654b

Message body not shown because it is not plain text.