summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--commands.c2
1 files changed, 1 insertions, 1 deletions
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)
{