patch for "move" dos command in wcmd

Kim Lilliestierna kill at itr.no
Sat Jan 27 08:26:03 CST 2007


There resently was a patch for the bug: http://bugs.winehq.org/show_bug.cgi?id=6722 in 0.9.29
it fixed the "copy" command, but omitted to the same fix for "move"  so here it is:

diff -urp a/programs/cmd/builtins.c b/programs/cmd/builtins.c
--- a/programs/cmd/builtins.c   2007-01-21 10:44:38.000000000 +0100
+++ b/programs/cmd/builtins.c   2007-01-21 10:39:08.000000000 +0100
@@ -520,6 +520,8 @@ HANDLE hff;

   /* If 2nd parm is directory, then use original filename */
   GetFullPathName (param2, sizeof(outpath), outpath, NULL);
+  if (outpath[strlen(outpath) - 1] == '\\')
+      outpath[strlen(outpath) - 1] = '\0';
   hff = FindFirstFile (outpath, &fd);
   if (hff != INVALID_HANDLE_VALUE) {
     if (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {

-- 
Kim Lilliestierna
kill at itr.no



More information about the wine-patches mailing list