(delete_target): Use safe_stat in place of stat.
authorRoland McGrath <roland@redhat.com>
Mon, 4 Jul 1994 21:52:28 +0000 (21:52 +0000)
committerRoland McGrath <roland@redhat.com>
Mon, 4 Jul 1994 21:52:28 +0000 (21:52 +0000)
commands.c

index d575b0c3f0c6b822da5c6e38d3df18a040e253f0..396730271981552bd0ae5d03e5bb0b2139d6ed9e 100644 (file)
@@ -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)
     {