(search_path): Use safe_stat in place of stat.

This commit is contained in:
Roland McGrath 1994-07-04 21:54:18 +00:00
parent 84091971f9
commit 535dcf6a22

2
job.c
View file

@ -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 ())