Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: Ben.Livengood [...] bannerhealth.com
Cc:
AdminCc:

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



CC: "Vonnahme, Nathan" <nathan.vonnahme [...] bannerhealth.com>
Subject: Patch for being unable to delete files with embedded spaces.
Date: Fri, 24 Aug 2007 13:09:05 -0800
To: <bug-Filesys-SmbClientParser [...] rt.cpan.org>
From: "Livengood, Ben" <Ben.Livengood [...] bannerhealth.com>
When trying to delete a file with embedded spaces, e.g. "windows file.txt", the del function fails. This patch is a simple fix for most files, although it will probably still break if $masq contains double quotes. Ben Livengood Patch follows: --- SmbClientParserold.pm 2007-08-24 12:48:58.854259000 -0800 +++ SmbClientParser.pm 2007-08-24 12:41:07.467119000 -0800 @@ -388,7 +388,7 @@ { my $self = shift; my $masq = shift; - my $commande = "del $masq"; + my $commande = "del \"$masq\""; return $self->SmbScript($commande,@_); }