summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1994-07-04 21:55:13 +0000
committerRoland McGrath <roland@redhat.com>1994-07-04 21:55:13 +0000
commit7c7552336dcec3b0e7cf2c4b793a9206861fbd55 (patch)
tree489344ad9b30f287469a3af5cc1f5011d1d73bb1
parent535dcf6a2215c70e3cfd8fe9ee63f0d6360a7fd4 (diff)
downloadgunmake-7c7552336dcec3b0e7cf2c4b793a9206861fbd55.tar.gz
(construct_include_path): Use safe_stat in place of stat.
-rw-r--r--read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/read.c b/read.c
index 4c74e98..6b7d122 100644
--- a/read.c
+++ b/read.c
@@ -1799,7 +1799,7 @@ construct_include_path (arg_dirs)
dir = expanded;
}
- if (stat (dir, &stbuf) == 0 && S_ISDIR (stbuf.st_mode))
+ if (safe_stat (dir, &stbuf) == 0 && S_ISDIR (stbuf.st_mode))
{
if (idx == max - 1)
{
@@ -1816,7 +1816,7 @@ construct_include_path (arg_dirs)
/* Now add at the end the standard default dirs. */
for (i = 0; default_include_directories[i] != 0; ++i)
- if (stat (default_include_directories[i], &stbuf) == 0
+ if (safe_stat (default_include_directories[i], &stbuf) == 0
&& S_ISDIR (stbuf.st_mode))
dirs[idx++] = default_include_directories[i];