diff options
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. */ |