chiark / gitweb /
[PATCH] 018 release
[elogind.git] / udevd.c
diff --git a/udevd.c b/udevd.c
index 9fbb4e964b6effeb7376cd134fba8180522f7bda..2b3dc55788f3e2915c7edf6644e7810b7c062dac 100644 (file)
--- a/udevd.c
+++ b/udevd.c
@@ -119,8 +119,8 @@ static void msg_queue_insert(struct hotplug_msg *msg)
 static void udev_run(struct hotplug_msg *msg)
 {
        pid_t pid;
-       char action[32];
-       char devpath[256];
+       char action[ACTION_SIZE];
+       char devpath[DEVPATH_SIZE];
        char *env[] = { action, devpath, NULL };
 
        snprintf(action, sizeof(action), "ACTION=%s", msg->action);
@@ -328,6 +328,7 @@ int main(int argc, char *argv[])
        struct sigaction act;
 
        init_logging("udevd");
+       dbg("version %s", UDEV_VERSION);
 
        if (getuid() != 0) {
                dbg("need to be root, exit");