X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fmake-file.c;h=bcb62906d4154c39ca2c6749a2b3e330680767ee;hb=23ebdca02083440bb1abc63fc81e0b5d1cdc9f8a;hp=2162741a78e416324d07578f49e5d75f5da4a95e;hpb=2e18bd3453a1f225103bf8d75ef3c4493ad301c5;p=pspp diff --git a/src/data/make-file.c b/src/data/make-file.c index 2162741a78..bcb62906d4 100644 --- a/src/data/make-file.c +++ b/src/data/make-file.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -177,7 +178,7 @@ replace_file_start (const char *file_name, const char *mode, { /* Generate unique temporary file name. */ rf->tmp_name = xasprintf ("%s.tmpXXXXXX", file_name); - if (gen_tempname (rf->tmp_name, GT_NOCREATE) < 0) + if (gen_tempname (rf->tmp_name, 0, 0600, GT_NOCREATE) < 0) { msg (ME, _("Creating temporary file to replace %s: %s."), rf->file_name, strerror (errno));