chiark / gitweb /
udev: Fix parsing of udev.event-timeout kernel parameter.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 4 Nov 2014 23:45:15 +0000 (23:45 +0000)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 5 Nov 2014 11:58:10 +0000 (12:58 +0100)
src/udev/udevd.c

index 2e6c713..193702c 100644 (file)
@@ -994,9 +994,9 @@ static void kernel_cmdline_options(struct udev *udev) {
                         if (r < 0)
                                 log_warning("Invalid udev.exec-delay ignored: %s", opt + 16);
                 } else if (startswith(opt, "udev.event-timeout=")) {
-                        r = safe_atou64(opt + 16, &arg_event_timeout_usec);
+                        r = safe_atou64(opt + 19, &arg_event_timeout_usec);
                         if (r < 0) {
-                                log_warning("Invalid udev.event-timeout ignored: %s", opt + 16);
+                                log_warning("Invalid udev.event-timeout ignored: %s", opt + 19);
                                 break;
                         }
                         arg_event_timeout_usec *= USEC_PER_SEC;