diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index e4e0c9558..8d8495380 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2008-07-22 Corinna Vinschen + + * spawn.cc (spawn_guts): Fix previous patch for UNC paths. + 2008-07-22 Corinna Vinschen * spawn.cc (spawn_guts): Remove long path prefix from win32 path diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 0a94282f0..485d2c44b 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -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; } }