From: Roland McGrath Date: Mon, 4 Jul 1994 21:52:28 +0000 (+0000) Subject: (delete_target): Use safe_stat in place of stat. X-Git-Tag: 3.71.2~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61da194af93493434cd744dcc4898becf2fd9420;p=thirdparty%2Fmake.git (delete_target): Use safe_stat in place of stat. --- diff --git a/commands.c b/commands.c index d575b0c3..39673027 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) {