Add "user_shell" boolean as a way to indicate to the plugin that
the -s flag was given.
This commit is contained in:
@@ -1162,6 +1162,11 @@ deserialize_info(char * const settings[], char * const user_info[])
|
||||
SET(flags, MODE_PRESERVE_ENV);
|
||||
continue;
|
||||
}
|
||||
if (MATCHES(*cur, "user_shell=")) {
|
||||
if (atobool(*cur + sizeof("user_shell=") - 1) == TRUE)
|
||||
SET(flags, MODE_SHELL);
|
||||
continue;
|
||||
}
|
||||
if (MATCHES(*cur, "login_shell=")) {
|
||||
if (atobool(*cur + sizeof("login_shell=") - 1) == TRUE) {
|
||||
SET(flags, MODE_LOGIN_SHELL);
|
||||
|
Reference in New Issue
Block a user