OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains4x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b8fd32
)
* spawn.cc (spawn_guts): Fix previous patch for UNC paths.
author
corinna
<corinna>
Wed, 23 Jul 2008 10:17:04 +0000
(10:17 +0000)
committer
corinna
<corinna>
Wed, 23 Jul 2008 10:17:04 +0000
(10:17 +0000)
winsup/cygwin/ChangeLog
patch
|
blob
|
history
winsup/cygwin/spawn.cc
patch
|
blob
|
history
diff --git
a/winsup/cygwin/ChangeLog
b/winsup/cygwin/ChangeLog
index
e4e0c95
..
8d84953
100644
(file)
--- 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
0a94282
..
485d2c4
100644
(file)
--- 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;
}
}