Commit 899ca1bd authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't expect rm(1) to live in /bin, find it with ${PATH}

Fixes: #3327
parent ebd64fd6
......@@ -247,8 +247,8 @@ cleaner_setup(void)
pp = fork();
assert(pp >= 0);
if (pp == 0)
exit(execl(
"/bin/rm", "rm", "-rf", buf, (char*)0));
exit(execlp(
"rm", "rm", "-rf", buf, (char*)0));
assert(waitpid(pp, &st, 0) == pp);
AZ(st);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment