]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
basic/path-util: fix executable_is_good
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Mon, 18 May 2026 10:28:08 +0000 (12:28 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Mon, 18 May 2026 10:28:08 +0000 (12:28 +0200)
Reported by qarmin (Rafał Mikrut).

src/basic/path-util.c

index fedb347e4a46177edfbb0fdef7ba999054f1f3e5..b41029b157cf913757b20c4dbc1518cf700360af 100644 (file)
@@ -804,7 +804,7 @@ static int executable_is_good(const char *executable) {
         if (r < 0)
                 return r;
 
-        return !PATH_IN_SET(d, "true"
+        return !PATH_IN_SET(d, "true",
                                "/bin/true",
                                "/usr/bin/true",
                                "/dev/null");