X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fmake-file.c;h=e4c9234044a687a078d198c2ec85f5385cd4f7dd;hb=a26729420e8d53045e12fe309202aa5cc3693da2;hp=f5cda498a89358662965a01c2b5e44a39c5a707b;hpb=f24649a9286df6c3c194186b03cf33c87ae19fb7;p=pspp-builds.git diff --git a/src/data/make-file.c b/src/data/make-file.c index f5cda498..e4c92340 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, 0600, 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));