OSDN Git Service

* spawn.cc (spawn_guts): Fix previous patch for UNC paths.
authorcorinna <corinna>
Wed, 23 Jul 2008 10:17:04 +0000 (10:17 +0000)
committercorinna <corinna>
Wed, 23 Jul 2008 10:17:04 +0000 (10:17 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/spawn.cc

index e4e0c95..8d84953 100644 (file)
@@ -1,5 +1,9 @@
 2008-07-22  Corinna Vinschen  <corinna@vinschen.de>
 
+       * spawn.cc (spawn_guts): Fix previous patch for UNC paths.
+
+2008-07-22  Corinna Vinschen  <corinna@vinschen.de>
+
        * spawn.cc (spawn_guts): Remove long path prefix from win32 path
        before calling CreateProcess if path length is < MAX_PATH.
 
index 0a94282..485d2c4 100644 (file)
@@ -482,7 +482,7 @@ spawn_guts (const char *prog_arg, const char *const *argv,
       {
         PWCHAR r = runpath + 4;
        if (r[1] != L':') /* UNC path */
-         r += 2;
+         *(r += 2) = L'\\';
        runpath = r;
       }
   }