From 071f6c2d40348af1706b4d666100aed2683bfe82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Stefanik?= Date: Wed, 24 Jan 2024 10:06:39 +0100 Subject: [PATCH] Fix typo in script-generator causing wrong traps in new Bash When renaming using_bash to bash_build, I accidentally removed the + sign from the assignment, causing bash_build > 1 to never match, resulting in old-style Ctrl+D traps even in the new Bash. This patch restores the intended += behavior. --- seed/script-generator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/script-generator.c b/seed/script-generator.c index b9d6905..7a70942 100644 --- a/seed/script-generator.c +++ b/seed/script-generator.c @@ -557,7 +557,7 @@ void generate(Directive *directives) { */ generate_preseed_jump(counter); } - bash_build = 1; + bash_build += 1; /* Create call to new script. */ output_call_script(out, "", int2str(counter, 10, 0), bash_build, 0); fclose(out);