summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1994-07-04 21:53:25 +0000
committerRoland McGrath <roland@redhat.com>1994-07-04 21:53:25 +0000
commit84091971f9cd48fe900be405853b4a006e67ef1b (patch)
tree6937b42ecd6cd9953918f079c071b34331e62502
parent61da194af93493434cd744dcc4898becf2fd9420 (diff)
downloadgunmake-84091971f9cd48fe900be405853b4a006e67ef1b.tar.gz
(find_directory): Use safe_stat in place of stat.
-rw-r--r--dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dir.c b/dir.c
index 1e1bcf1..d280d2a 100644
--- a/dir.c
+++ b/dir.c
@@ -1,5 +1,5 @@
/* Directory hashing for GNU Make.
-Copyright (C) 1988, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
+Copyright (C) 1988, 1989, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
This file is part of GNU Make.
GNU Make is free software; you can redistribute it and/or modify
@@ -136,7 +136,7 @@ find_directory (name)
/* The directory is not in the name hash table.
Find its device and inode numbers, and look it up by them. */
- if (stat (name, &st) < 0)
+ if (safe_stat (name, &st) < 0)
/* Couldn't stat the directory. Mark this by
setting the `contents' member to a nil pointer. */
dir->contents = 0;