]> mj.ucw.cz Git - moe.git/commitdiff
Do not choke on file names containing spaces.
authorMartin Mares <mj@ucw.cz>
Wed, 20 Feb 2008 11:17:48 +0000 (12:17 +0100)
committerMartin Mares <mj@ucw.cz>
Wed, 20 Feb 2008 11:17:48 +0000 (12:17 +0100)
Propagating upstream.

maint/release.pm

index dc937cee0bf6a74bf694397e273c1d3e7584295a..b0fa46ee1ec5676f8a46fd79bd476b98de930838 100644 (file)
@@ -154,7 +154,7 @@ sub CopyFile($$$$) {
                close I;
                ! -x $f or chmod(0755, "$dir/$f") or die "chmod($dir/$f): $!";
        } else {
                close I;
                ! -x $f or chmod(0755, "$dir/$f") or die "chmod($dir/$f): $!";
        } else {
-               `cp -a $f $dir/$f`; die if $?;
+               `cp -a "$f" "$dir/$f"`; die if $?;
        }
 }
 
        }
 }