[yast-commit] r63779 - /trunk/snapper/src/Snapper.ycp
Author: jsuchome Date: Fri Apr 15 08:45:28 2011 New Revision: 63779 URL: http://svn.opensuse.org/viewcvs/yast?rev=63779&view=rev Log: escape paths Modified: trunk/snapper/src/Snapper.ycp Modified: trunk/snapper/src/Snapper.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/snapper/src/Snapper.ycp?rev=63779&r1=63778&r2=63779&view=diff ============================================================================== --- trunk/snapper/src/Snapper.ycp (original) +++ trunk/snapper/src/Snapper.ycp Fri Apr 15 08:45:28 2011 @@ -224,7 +224,7 @@ UI::ChangeWidget (`id (`progress ), `Value, progress); - string orig = sformat ("%1/%2/snapshot%3", snapshots_path, snapshot_num, file); + string orig = sformat ("%1/%2/snapshot", snapshots_path, snapshot_num) + file; string dir = substring (file, 0, findlastof (file, "/")); y2milestone ("copying file %1 to %2 (dir: %3)", orig, file, dir); @@ -238,7 +238,7 @@ } else { - SCR::Execute (.target.bash, sformat ("/bin/cp -a %1 %2", orig, file)); + SCR::Execute (.target.bash, sformat ("/bin/cp -a '%1' '%2'", orig, file)); } UI::ChangeWidget (`id (`log), `LastLine, file + "\n"); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jsuchome@svn2.opensuse.org