1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-19 04:21:45 -07:00

(unexec): Error if trying unexec from dumped executable.

This commit is contained in:
YAMAMOTO Mitsuharu 2006-05-01 01:13:42 +00:00
parent a019c41a5c
commit 6dc5c8a75b

View file

@ -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)
{