From: WanBingjiang Date: Thu, 8 May 2025 02:28:48 +0000 (+0800) Subject: shells.c: call setusershell before getusershell X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4a795a545625b6e4fd27030266b3317c9cddfa78;p=thirdparty%2Futil-linux.git shells.c: call setusershell before getusershell --- 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();