diff options
author | Roland McGrath <roland@redhat.com> | 1994-07-04 21:54:18 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1994-07-04 21:54:18 +0000 |
commit | 535dcf6a2215c70e3cfd8fe9ee63f0d6360a7fd4 (patch) | |
tree | 07cbe3d8082435cd8afdb4ff4cb215a14e0ec4fc /job.c | |
parent | 84091971f9cd48fe900be405853b4a006e67ef1b (diff) | |
download | gunmake-535dcf6a2215c70e3cfd8fe9ee63f0d6360a7fd4.tar.gz |
(search_path): Use safe_stat in place of stat.
Diffstat (limited to 'job.c')
-rw-r--r-- | job.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ()) |