diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-07-23 14:17:04 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-07-23 14:17:04 +0400 |
commit | 02151f07e6f60bc47aa99b2735dbac532d34601e (patch) | |
tree | ce4e23508e593bb945d0d6fd9766c5d3c3d5f42b /winsup/cygwin | |
parent | 7e1fdc9e2c9408be9272525bca0163498b71241e (diff) |
* spawn.cc (spawn_guts): Fix previous patch for UNC paths.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/spawn.cc | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index e4e0c9558..8d8495380 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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. 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; } } |