From 3af7f6ab02f87a82c7407dcb5876afd1db6f5e95 Mon Sep 17 00:00:00 2001 From: cgf 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 4d39e036f3..48f9ebab2d 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 7281b3e41b..3833264163 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); -- 2.11.0