From 82f123e5c6530b195ca9239b609a8bb31294d2a0 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 23 Jul 2007 21:03:59 +0000 Subject: [PATCH] * strace.cc (create_child): Don't convert a path from cygwin format unless it has a slash. --- winsup/utils/ChangeLog | 5 +++++ winsup/utils/strace.cc | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 4d39e036f..48f9ebab2 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,8 @@ +2007-07-23 Christopher Faylor + + * strace.cc (create_child): Don't convert a path from cygwin format + unless it has a slash. + 2007-07-09 Christopher Faylor * strace.cc (usage): Add missing description for -q. diff --git a/winsup/utils/strace.cc b/winsup/utils/strace.cc index 7281b3e41..383326416 100644 --- a/winsup/utils/strace.cc +++ b/winsup/utils/strace.cc @@ -313,7 +313,8 @@ create_child (char **argv) BOOL ret; DWORD flags; - *argv = cygpath (*argv, NULL); + if (strchr (*argv, '/')) + *argv = cygpath (*argv, NULL); memset (&si, 0, sizeof (si)); si.cb = sizeof (si);