29 lines
741 B
Diff
29 lines
741 B
Diff
From 58f1d500b6da18d62eef35b5f55a030ce8b9b0ce Mon Sep 17 00:00:00 2001
|
|
From: David Teigland <teigland@redhat.com>
|
|
Date: Mon, 14 Jan 2019 15:47:07 -0600
|
|
Subject: [PATCH] dlm_controld: ignore unwanted uevent strings
|
|
|
|
---
|
|
dlm_controld/main.c | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/dlm_controld/main.c b/dlm_controld/main.c
|
|
index 40816aae3b24..ca1349bae241 100644
|
|
--- a/dlm_controld/main.c
|
|
+++ b/dlm_controld/main.c
|
|
@@ -350,7 +350,10 @@ static void process_uevent(int ci)
|
|
act = argv[0];
|
|
sys = argv[2];
|
|
|
|
- if ((strlen(sys) != strlen("dlm")) || strcmp(sys, "dlm"))
|
|
+ if (!act || !sys || !argv[3])
|
|
+ return;
|
|
+
|
|
+ if (strncmp(sys, "dlm", 3))
|
|
return;
|
|
|
|
log_debug("kernel: %s %s", act, argv[3]);
|
|
--
|
|
2.7.5
|
|
|