summaryrefslogtreecommitdiff
path: root/src/unexmacosx.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-12-20 13:11:40 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2014-12-20 13:12:20 -0800
commit9b14d8b6f259a4d602f0c61689d6641e7ab20b49 (patch)
treef631a2165d1201cb75ed3e362464a5ae2610bfc5 /src/unexmacosx.c
parentb459f1f0b970b640bbc1f3827115a18be2dcef7f (diff)
downloademacs-9b14d8b6f259a4d602f0c61689d6641e7ab20b49.tar.gz
Simplify unexec file mode setting
* unexaix.c, unexcoff.c, unexelf.c, unexmacosx.c: Don't include <sys/stat.h> when no longer needed. (unexec): Create file with correct mode in the first place, rather than overwriting the mode later and fiddling with the global umask in the mean time. Avoid bogus usage like 'umask (777)', which should have been 'umask (0777)'. (mark_x): Remove. All callers removed.
Diffstat (limited to 'src/unexmacosx.c')
-rw-r--r--src/unexmacosx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unexmacosx.c b/src/unexmacosx.c
index 2e1ac880d2a..89971bb8a77 100644
--- a/src/unexmacosx.c
+++ b/src/unexmacosx.c
@@ -1267,7 +1267,7 @@ unexec (const char *outfile, const char *infile)
unexec_error ("cannot open input file `%s'", infile);
}
- outfd = emacs_open (outfile, O_WRONLY | O_TRUNC | O_CREAT, 0755);
+ outfd = emacs_open (outfile, O_WRONLY | O_TRUNC | O_CREAT, 0777);
if (outfd < 0)
{
emacs_close (infd);