From 4a795a545625b6e4fd27030266b3317c9cddfa78 Mon Sep 17 00:00:00 2001 From: WanBingjiang Date: Thu, 8 May 2025 10:28:48 +0800 Subject: [PATCH] shells.c: call setusershell before getusershell --- lib/shells.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/shells.c b/lib/shells.c index 18e4cca4a..adf7d8c1d 100644 --- a/lib/shells.c +++ b/lib/shells.c @@ -63,6 +63,7 @@ extern void print_shells(FILE *out, const char *format) #else char *s; + setusershell(); while ((s = getusershell())) fprintf(out, format, s); endusershell(); -- 2.47.2