diff options
author | Roland McGrath <roland@redhat.com> | 1995-12-12 03:26:08 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1995-12-12 03:26:08 +0000 |
commit | 4e6de57b8fec02cb77043b3d856cf40f2663f0c2 (patch) | |
tree | a2d58b698feb85d750e2cc56261fca4650919521 /commands.c | |
parent | 41e6704efd71ee4735685baa67c61e14642d9779 (diff) | |
download | gunmake-4e6de57b8fec02cb77043b3d856cf40f2663f0c2.tar.gz |
Use plain stat instead of safe_stat.
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. */ |