X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=blobdiff_plain;f=src%2Fdata%2Fmake-file.c;fp=src%2Fdata%2Fmake-file.c;h=f5cda498a89358662965a01c2b5e44a39c5a707b;hp=2162741a78e416324d07578f49e5d75f5da4a95e;hb=a36d34531d79e34d314f5346c63153c788acdd1b;hpb=99bafccc08919a5d640cb35962c4d730a2cad3a1 diff --git a/src/data/make-file.c b/src/data/make-file.c index 2162741a..f5cda498 100644 --- a/src/data/make-file.c +++ b/src/data/make-file.c @@ -177,7 +177,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, 0600, GT_NOCREATE) < 0) { msg (ME, _("Creating temporary file to replace %s: %s."), rf->file_name, strerror (errno));