Simplify unexec file mode setting
commit9b14d8b6f259a4d602f0c61689d6641e7ab20b49
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 20 Dec 2014 21:11:40 +0000 (20 13:11 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 20 Dec 2014 21:12:20 +0000 (20 13:12 -0800)
treef631a2165d1201cb75ed3e362464a5ae2610bfc5
parentb459f1f0b970b640bbc1f3827115a18be2dcef7f
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.
src/ChangeLog
src/unexaix.c
src/unexcoff.c
src/unexelf.c
src/unexmacosx.c