summaryrefslogtreecommitdiff
path: root/vpath.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1994-07-04 21:56:24 +0000
committerRoland McGrath <roland@redhat.com>1994-07-04 21:56:24 +0000
commitfdea69c5fa30a5780248150f152d4c22a58739e8 (patch)
treebec21bf81fed595315a3bb002f19b99b8110d126 /vpath.c
parent7c7552336dcec3b0e7cf2c4b793a9206861fbd55 (diff)
downloadgunmake-fdea69c5fa30a5780248150f152d4c22a58739e8.tar.gz
(selective_vpath_search): Use safe_stat in place of stat.
Diffstat (limited to 'vpath.c')
-rw-r--r--vpath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vpath.c b/vpath.c
index 84768d5..1d3ce61 100644
--- a/vpath.c
+++ b/vpath.c
@@ -1,5 +1,5 @@
/* Implementation of pattern-matching file search paths 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
@@ -419,7 +419,7 @@ selective_vpath_search (path, file, mtime_ptr)
*n = '/';
if (!exists_in_cache /* Makefile-mentioned file need not exist. */
- || stat (name, &st) == 0) /* Does it really exist? */
+ || safe_stat (name, &st) == 0) /* Does it really exist? */
{
/* We have found a file.
Store the name we found into *FILE for the caller. */