From 719a6924c433baf3c7beaddedd72fac0deaac74a Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Mon, 23 Dec 2019 20:49:15 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20allow=20portable=20dumping=20in?= =?utf8?q?=20interactive=20mode=20(Bug#38453).?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * src/pdumper.c (Fdump_emacs_portable): Don’t allow dumping in interactive mode. (cherry picked from commit e7edba42c8a525722cbd40f782b0df68e4976a62) --- src/pdumper.c | 3 +++ 1 file changed, 3 insertions(+) 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. */) { eassert (initialized); + if (! noninteractive) + error ("Dumping Emacs works only in batch mode"); + if (will_dump_with_unexec_p ()) error ("This Emacs instance was started under the assumption " "that it would be dumped with unexec, not the portable " -- 2.39.2