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,@_);
}