diff --git a/src/programs/pkexec.c b/src/programs/pkexec.c index 78c8879b..6477a318 100644 --- a/src/programs/pkexec.c +++ b/src/programs/pkexec.c @@ -372,7 +372,7 @@ is_valid_shell (const gchar *shell) shells = g_strsplit (contents, "\n", 0); for (n = 0; shells != NULL && shells[n] != NULL; n++) { - if (g_strcmp0 (shell, shells[n]) == 0) + if (shells[n][0] == '/' && g_strcmp0 (shell, shells[n]) == 0) { ret = TRUE; goto out;