X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udevd.c;h=2b3dc55788f3e2915c7edf6644e7810b7c062dac;hb=b484e43622c04aaf4a2ca851bc7436b873530b1d;hp=9fbb4e964b6effeb7376cd134fba8180522f7bda;hpb=d026a35d747c0a993281408a9644ab843cf89fdd;p=elogind.git diff --git a/udevd.c b/udevd.c index 9fbb4e964..2b3dc5578 100644 --- 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");