X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fmake-file.c;h=2162741a78e416324d07578f49e5d75f5da4a95e;hb=2e18bd3453a1f225103bf8d75ef3c4493ad301c5;hp=807adc50d9d112de7b47459f0a06a98a4786651f;hpb=0527ca8a9d13e99d51b579b27bbfde7d3e11cd94;p=pspp diff --git a/src/data/make-file.c b/src/data/make-file.c index 807adc50d9..2162741a78 100644 --- a/src/data/make-file.c +++ b/src/data/make-file.c @@ -185,7 +185,7 @@ replace_file_start (const char *file_name, const char *mode, } /* Create file by that name. */ - fd = open (rf->tmp_name, O_WRONLY | O_CREAT | O_EXCL, permissions); + fd = open (rf->tmp_name, O_WRONLY | O_CREAT | O_EXCL | O_BINARY, permissions); if (fd >= 0) break; if (errno != EEXIST)