X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fmake-file.c;h=2162741a78e416324d07578f49e5d75f5da4a95e;hb=dbd443bb33b42b00e1bb9e67e140af659a418673;hp=807adc50d9d112de7b47459f0a06a98a4786651f;hpb=c90c44ab307b3ba49f606d2bae80e6aff1e228d7;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)