(search_path): Use safe_stat in place of stat.
authorRoland McGrath <roland@redhat.com>
Mon, 4 Jul 1994 21:54:18 +0000 (21:54 +0000)
committerRoland McGrath <roland@redhat.com>
Mon, 4 Jul 1994 21:54:18 +0000 (21:54 +0000)
job.c

diff --git a/job.c b/job.c
index 335c6a10b5a99274a086b6e328f489daae0a1b5e..5be3194f7db6bc9e29d79a34decd9705cd22e7b6 100644 (file)
--- 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 ())