summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--job.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/job.c b/job.c
index 335c6a1..5be3194 100644
--- a/job.c
+++ b/job.c
@@ -1062,7 +1062,7 @@ search_path (file, path, program)
bcopy (file, program + (p - path) + 1, len);
}
- if (stat (program, &st) == 0
+ if (safe_stat (program, &st) == 0
&& S_ISREG (st.st_mode))
{
if (st.st_uid == geteuid ())