From: Lennart Poettering Date: Thu, 3 Dec 2020 13:58:20 +0000 (+0100) Subject: Merge pull request #17079 from keszybz/late-exec-resolution X-Git-Tag: v248-rc1~587 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dd16814a56d2ce96ab3c4c611a61e47f2f7b663;p=thirdparty%2Fsystemd.git Merge pull request #17079 from keszybz/late-exec-resolution Resolve executable paths before execution, use fexecve() --- 6dd16814a56d2ce96ab3c4c611a61e47f2f7b663 diff --cc src/test/test-path-util.c index f4f8d0550b7,c05a5d5b4a9..874bab8f940 --- a/src/test/test-path-util.c +++ b/src/test/test-path-util.c @@@ -184,9 -186,9 +186,9 @@@ static void test_find_executable_full(v if (p) assert_se(oldpath = strdup(p)); - assert_se(unsetenv("PATH") >= 0); + assert_se(unsetenv("PATH") == 0); - assert_se(find_executable_full("sh", true, &p) == 0); + assert_se(find_executable_full("sh", true, &p, NULL) == 0); puts(p); assert_se(streq(basename(p), "sh")); free(p);