summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1995-12-12 03:26:08 +0000
committerRoland McGrath <roland@redhat.com>1995-12-12 03:26:08 +0000
commit4e6de57b8fec02cb77043b3d856cf40f2663f0c2 (patch)
treea2d58b698feb85d750e2cc56261fca4650919521
parent41e6704efd71ee4735685baa67c61e14642d9779 (diff)
downloadgunmake-4e6de57b8fec02cb77043b3d856cf40f2663f0c2.tar.gz
Use plain stat instead of safe_stat.
-rw-r--r--commands.c4
-rw-r--r--remake.c2
-rw-r--r--vpath.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/commands.c b/commands.c
index 1a8df3a..97ccbb1 100644
--- a/commands.c
+++ b/commands.c
@@ -451,7 +451,7 @@ delete_target (file, on_behalf_of)
}
#endif
- if (safe_stat (file->name, &st) == 0
+ if (stat (file->name, &st) == 0
&& S_ISREG (st.st_mode)
&& (time_t) st.st_mtime != file->last_mtime)
{
@@ -464,7 +464,7 @@ delete_target (file, on_behalf_of)
perror_with_name ("unlink: ", file->name);
}
}
-
+
/* Delete all non-precious targets of CHILD unless they were already deleted.
Set the flag in CHILD to say they've been deleted. */
diff --git a/remake.c b/remake.c
index 173a67e..528b0ba 100644
--- a/remake.c
+++ b/remake.c
@@ -1000,7 +1000,7 @@ name_mtime (name)
{
struct stat st;
- if (safe_stat (name, &st) < 0)
+ if (stat (name, &st) < 0)
return (time_t) -1;
return (time_t) st.st_mtime;
diff --git a/vpath.c b/vpath.c
index 480fcad..499864b 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, 1994 Free Software Foundation, Inc.
+Copyright (C) 1988, 89, 91, 92, 93, 94, 95 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. */
- || safe_stat (name, &st) == 0) /* Does it really exist? */
+ || stat (name, &st) == 0) /* Does it really exist? */
{
/* We have found a file.
Store the name we found into *FILE for the caller. */