From 4e6de57b8fec02cb77043b3d856cf40f2663f0c2 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 12 Dec 1995 03:26:08 +0000 Subject: Use plain stat instead of safe_stat. --- commands.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands.c') 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. */ -- cgit v1.2.3