From: Kay Sievers Date: Tue, 16 Jun 2009 16:11:40 +0000 (+0200) Subject: udev-acl: handle missing action when called in CK mode X-Git-Tag: 174~965 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc04059abfc5d1fa9bfe9afb15ca03017a26fb56;p=systemd udev-acl: handle missing action when called in CK mode --- 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");