]> sourceware.org Git - newlib-cygwin.git/commitdiff
* mktemp.cc (_gettemp): Open temp files in binary mode.
authorChristopher Faylor <me@cgf.cx>
Mon, 17 Apr 2006 15:09:13 +0000 (15:09 +0000)
committerChristopher Faylor <me@cgf.cx>
Mon, 17 Apr 2006 15:09:13 +0000 (15:09 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/mktemp.cc

index 1c55f51808ba6690a63b7bd1fafac1da9ccc8438..960d728e075eb8c4e8967dae2590a10604b681f8 100644 (file)
@@ -1,3 +1,7 @@
+2006-04-17  Eric Blake  <ebb9@byu.net>
+
+       * mktemp.cc (_gettemp): Open temp files in binary mode.
+
 2006-04-14  Corinna Vinschen  <corinna@vinschen.de>
 
        * fhandler_disk_file.cc (fhandler_disk_file::readdir): Use UINT32_MAX
index f7b7236f1f1b5aa16e61554366db3d49c8368efb..5567e4a67f001a6716c22fff678f8178a5b51b01 100644 (file)
@@ -105,7 +105,8 @@ _gettemp(char *path, int *doopen, int domkdir)
     {
       if (doopen)
        {
-         if ((*doopen = open (path, O_CREAT | O_EXCL | O_RDWR, 0600)) >= 0)
+         if ((*doopen = open (path, O_CREAT | O_EXCL | O_RDWR | O_BINARY,
+                              S_IRUSR | S_IWUSR)) >= 0)
            return 1;
          if (errno != EEXIST)
            return 0;
This page took 0.032583 seconds and 5 git commands to generate.