From: Roland McGrath Date: Mon, 4 Jul 1994 21:54:18 +0000 (+0000) Subject: (search_path): Use safe_stat in place of stat. X-Git-Tag: 3.71.2~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=535dcf6a2215c70e3cfd8fe9ee63f0d6360a7fd4;p=thirdparty%2Fmake.git (search_path): Use safe_stat in place of stat. --- diff --git a/job.c b/job.c index 335c6a10..5be3194f 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 ())