summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/usr.bin/groff/indxbib/indxbib.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/groff/indxbib/indxbib.cc b/gnu/usr.bin/groff/indxbib/indxbib.cc
index fb353247c80..289bec1376b 100644
--- a/gnu/usr.bin/groff/indxbib/indxbib.cc
+++ b/gnu/usr.bin/groff/indxbib/indxbib.cc
@@ -219,10 +219,10 @@ int main(int argc, char **argv)
else {
temp_index_file = strsave(TEMP_INDEX_TEMPLATE);
}
+ catch_fatal_signals();
int fd = mkstemp(temp_index_file);
if (fd == -1 || !temp_index_file[0])
fatal("cannot create file name for temporary file");
- catch_fatal_signals();
if (fchmod(fd, S_IRUSR|S_IRGRP|S_IROTH) < 0)
fatal("cannot change permissions for temporary file");
indxfp = fdopen(fd, "w");