diff --git a/src/libs/bsd/usershell.c b/src/libs/bsd/usershell.c index 4eb5dd817b..403c5192d1 100644 --- a/src/libs/bsd/usershell.c +++ b/src/libs/bsd/usershell.c @@ -9,17 +9,21 @@ #include - +static const char* const kShells[] = { + "/bin/sh", + "/bin/bash", + NULL +}; static int sShellIndex; char * getusershell(void) { - if (sShellIndex++ == 0) - return "/bin/sh"; + if (kShells[sShellIndex] == NULL) + return NULL; - return NULL; + return (char*)kShells[sShellIndex++]; }