Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-07-15 19:18:51 +0400
committerCorinna Vinschen <corinna@vinschen.de>2009-07-15 19:18:51 +0400
commit8b800efea52a06359fbf75e4957e23ba2e8c24ca (patch)
tree36de87db36df954b72bf57655061c1b272b24e8a /winsup/utils/strace.cc
parentf84aaff2220ee72829af114d526242968337375a (diff)
* strace.cc (main): Open trace output file in UNIX mode.
Diffstat (limited to 'winsup/utils/strace.cc')
-rw-r--r--winsup/utils/strace.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/utils/strace.cc b/winsup/utils/strace.cc
index 0334eb71e..eb3b1a875 100644
--- a/winsup/utils/strace.cc
+++ b/winsup/utils/strace.cc
@@ -1,6 +1,7 @@
/* strace.cc
- Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Red Hat Inc.
+ Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
+ 2009 Red Hat Inc.
Written by Chris Faylor <cgf@redhat.com>
@@ -983,7 +984,7 @@ character #%d.\n", optarg, (int) (endptr - optarg), endptr);
numerror ^= 1;
break;
case 'o':
- if ((ofile = fopen (cygpath (optarg, NULL), "w")) == NULL)
+ if ((ofile = fopen (cygpath (optarg, NULL), "wb")) == NULL)
error (1, "can't open %s", optarg);
#ifdef F_SETFD
(void) fcntl (fileno (ofile), F_SETFD, 0);