diff options
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2006-05-01 01:13:42 +0000 |
---|---|---|
committer | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2006-05-01 01:13:42 +0000 |
commit | 6dc5c8a75b8ad0aea911c0236e4fdb35e1e0839f (patch) | |
tree | 2dbd8d8c3cf0a71976a18ad2091c2aae084efe22 /src/unexmacosx.c | |
parent | a019c41a5cd58fcc8b518edcdfc46e04471fbff9 (diff) | |
download | emacs-6dc5c8a75b8ad0aea911c0236e4fdb35e1e0839f.tar.gz |
(unexec): Error if trying unexec from dumped executable.
Diffstat (limited to 'src/unexmacosx.c')
-rw-r--r-- | src/unexmacosx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unexmacosx.c b/src/unexmacosx.c index 4ca0be829a2..f65fd9cbc22 100644 --- a/src/unexmacosx.c +++ b/src/unexmacosx.c @@ -1021,6 +1021,9 @@ void unexec (char *outfile, char *infile, void *start_data, void *start_bss, void *entry_address) { + if (in_dumped_exec) + unexec_error ("Unexec from a dumped executable is not supported."); + infd = open (infile, O_RDONLY, 0); if (infd < 0) { |