24 lines
1.1 KiB
Diff
24 lines
1.1 KiB
Diff
|
Based on f671774f52838d35d78e62ddcb781b5b65b3373f Mon Sep 17 00:00:00 2001
|
||
|
From: "Richard W.M. Jones" <rjones@redhat.com>
|
||
|
Date: Tue, 4 Nov 2014 23:45:15 +0000
|
||
|
Subject: [PATCH] udev: Fix parsing of udev.event-timeout kernel parameter.
|
||
|
|
||
|
---
|
||
|
src/udev/udevd.c | 4 ++--
|
||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
--- src/udev/udevd.c
|
||
|
+++ src/udev/udevd.c 2014-11-10 12:28:20.385559165 +0000
|
||
|
@@ -1011,9 +1011,9 @@ static void kernel_cmdline_options(struc
|
||
|
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, &event_timeout_usec);
|
||
|
+ r = safe_atou64(opt + 19, &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;
|
||
|
}
|
||
|
event_timeout_usec *= USEC_PER_SEC;
|