From febe70a80330ee29fccb592fbe84ba594a408a9d Mon Sep 17 00:00:00 2001 From: roland Date: Mon, 4 Jul 1994 21:54:18 +0000 Subject: [PATCH] (search_path): Use safe_stat in place of stat. --- job.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ()) -- 2.11.4.GIT