diff options
| author | Philipp Stephani | 2019-12-23 20:49:15 +0100 |
|---|---|---|
| committer | Eli Zaretskii | 2019-12-24 19:55:31 +0200 |
| commit | 719a6924c433baf3c7beaddedd72fac0deaac74a (patch) | |
| tree | 64e719d847f05fc51f76c9089f93fe1a0f45936d /src | |
| parent | ca6a53d3bc91d6fef9aa872495ab74298ce91bee (diff) | |
| download | emacs-719a6924c433baf3c7beaddedd72fac0deaac74a.tar.gz emacs-719a6924c433baf3c7beaddedd72fac0deaac74a.zip | |
Don’t allow portable dumping in interactive mode (Bug#38453).
* src/pdumper.c (Fdump_emacs_portable): Don’t allow dumping in
interactive mode.
(cherry picked from commit e7edba42c8a525722cbd40f782b0df68e4976a62)
Diffstat (limited to 'src')
| -rw-r--r-- | src/pdumper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pdumper.c b/src/pdumper.c index 74f198c4ae3..e944cdb1c6c 100644 --- a/src/pdumper.c +++ b/src/pdumper.c | |||
| @@ -4004,6 +4004,9 @@ types. */) | |||
| 4004 | { | 4004 | { |
| 4005 | eassert (initialized); | 4005 | eassert (initialized); |
| 4006 | 4006 | ||
| 4007 | if (! noninteractive) | ||
| 4008 | error ("Dumping Emacs works only in batch mode"); | ||
| 4009 | |||
| 4007 | if (will_dump_with_unexec_p ()) | 4010 | if (will_dump_with_unexec_p ()) |
| 4008 | error ("This Emacs instance was started under the assumption " | 4011 | error ("This Emacs instance was started under the assumption " |
| 4009 | "that it would be dumped with unexec, not the portable " | 4012 | "that it would be dumped with unexec, not the portable " |