From 849d0665e0f9c3786f6154534202afbd60115edd Mon Sep 17 00:00:00 2001 From: Jacob Abel Date: Sat, 10 Aug 2024 14:13:07 -0400 Subject: [PATCH] bin/dispatch-conf: Avoid nologin shell Checks if the default shell is set to either nologin or false and uses the bourne shell instead in those cases. Bug: https://bugs.gentoo.org/910560 Signed-off-by: Jacob Abel --- bin/dispatch-conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/dispatch-conf b/bin/dispatch-conf index 93164d909..21f125b8c 100755 --- a/bin/dispatch-conf +++ b/bin/dispatch-conf @@ -577,6 +577,8 @@ def clear_screen(): shell = os.environ.get("SHELL") if not shell or not os.access(shell, os.EX_OK): shell = find_binary("sh") +elif os.path.basename(shell) in ("nologin", "false"): + shell = find_binary("sh") def spawn_shell(cmd): -- 2.44.2