chiark / gitweb /
[PATCH] add SUBSYSTEM rule to catch all block devices and apply the disk permissions
[elogind.git] / udevsend.c
index 16174f5e466c5674079452e3dc72dddb50613550..05a50facc51600cb5eeb04eed1e3702f279686c4 100644 (file)
@@ -44,7 +44,6 @@
 static int sock = -1;
 
 #ifdef LOG
-unsigned char logname[LOGNAME_SIZE];
 void log_message (int level, const char *format, ...)
 {
        va_list args;
@@ -155,7 +154,7 @@ int main(int argc, char *argv[], char *envp[])
                }
 
                /* prevent loops in the scripts we execute */
-               if (strncmp(key, "MANAGED_EVENT=", 14) == 0) {
+               if (strncmp(key, "UDEVD_EVENT=", 12) == 0) {
                        dbg("seems that the event source is not the kernel, just exit");
                        goto exit;
                }