From 61da194af93493434cd744dcc4898becf2fd9420 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 4 Jul 1994 21:52:28 +0000 Subject: (delete_target): Use safe_stat in place of stat. --- commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.c b/commands.c index d575b0c..3967302 100644 --- a/commands.c +++ b/commands.c @@ -416,7 +416,7 @@ delete_target (file, on_behalf_of) } #endif - if (stat (file->name, &st) == 0 + if (safe_stat (file->name, &st) == 0 && S_ISREG (st.st_mode) && (time_t) st.st_mtime != file->last_mtime) { -- cgit v1.2.3