mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-26 00:49:38 +07:00
udev-acl: handle missing action when called in CK mode
This commit is contained in:
parent
88a7923e91
commit
fc04059abf
@ -159,7 +159,7 @@ static int consolekit_called(const char *action, uid_t *uid, const char **own_se
|
||||
const char *s;
|
||||
const char *session;
|
||||
|
||||
if (strcmp(action, "session_active_changed") != 0)
|
||||
if (action == NULL || strcmp(action, "session_active_changed") != 0)
|
||||
return -1;
|
||||
|
||||
s = getenv("CK_SESSION_IS_LOCAL");
|
||||
|
Loading…
Reference in New Issue
Block a user