From fc04059abfc5d1fa9bfe9afb15ca03017a26fb56 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Tue, 16 Jun 2009 18:11:40 +0200 Subject: [PATCH] udev-acl: handle missing action when called in CK mode --- extras/udev-acl/udev-acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/udev-acl/udev-acl.c b/extras/udev-acl/udev-acl.c index ec95025e..3eb29fe2 100644 --- a/extras/udev-acl/udev-acl.c +++ b/extras/udev-acl/udev-acl.c @@ -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"); -- 2.39.5