udev: restore debug level when logging a failure in the external prog called by IMPOR...
authorFranck Bui <fbui@suse.com>
Tue, 5 Mar 2019 10:03:07 +0000 (11:03 +0100)
committerMichael Biebl <biebl@debian.org>
Fri, 29 Jan 2021 14:16:06 +0000 (14:16 +0000)
It was already the case before commit a75211421fc9366068e6d9446e8e567246c72feb,
which upgraded the log to warning.

This seems an unintended side effect as the commit message doesn't mention it
and the old behavior looks more appropriate.

(cherry picked from commit 3c37dadf627677eef62fcfc0c0f07cc67c748a9e)

Gbp-Pq: Name udev-restore-debug-level-when-logging-a-failure-in-the-ex.patch

src/udev/udev-rules.c

index bc9c6c26c51fe409bd81718c22865d43c9c938ba..7fa4fd4d6d4b489da2f210ab5b898ec7ad2e421b 100644 (file)
@@ -647,7 +647,7 @@ static int import_program_into_properties(UdevEvent *event,
         char *line;
         int r;
 
-        r = udev_event_spawn(event, timeout_usec, false, program, result, sizeof result);
+        r = udev_event_spawn(event, timeout_usec, true, program, result, sizeof result);
         if (r < 0)
                 return r;
         if (r > 0)