richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
Blob Blame History Raw
From 1949cb6f5ff8cccecfab4eca5a4e697d5c55dbdf Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Wed, 5 Nov 2014 10:50:01 +0100
Subject: [PATCH] udev: Fix parsing of udev.event-timeout kernel parameter

(rhel-only, will be fixed in upstream differently)

Related: #1154778
---
 src/udev/udevd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 6241549..8d3f64f 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -889,7 +889,7 @@ static void kernel_cmdline_options(struct udev *udev)
                 } else if (startswith(opt, "udev.exec-delay=")) {
                         exec_delay = strtoul(opt + 16, NULL, 0);
                 } else if (startswith(opt, "udev.event-timeout=")) {
-                        event_timeout = strtoul(opt + 16, NULL, 0);
+                        event_timeout = strtoul(opt + 19, NULL, 0);
                 }
 
                 free(s);