summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2000-04-03 05:58:41 +0000
committerPaul Smith <psmith@gnu.org>2000-04-03 05:58:41 +0000
commitf3a974bf32a3e5d3d898a040fedcbb478d1afd85 (patch)
treeb31ca7fc34c7bee7858ae3d2fad822f1d3a13d8e
parentc67266ceacbde449be807d23c6d8df465c763a1e (diff)
downloadgunmake-f3a974bf32a3e5d3d898a040fedcbb478d1afd85.tar.gz
* Fix bug handling archive members: convert timestamp to nsec properly
on those systems that support it.
-rw-r--r--ChangeLog8
-rw-r--r--remake.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9d15e6c..b6e13f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2000-04-03 Paul D. Smith <psmith@gnu.org>
+
+ * remake.c (f_mtime): Archive member timestamps are stored as
+ time_t, without nanoseconds. But, f_mtime() wants to return
+ nanosecond info on those systems that support it. So, convert the
+ return value of ar_member_date() into a FILE_TIMESTAMP, using 0 as
+ the nanoseconds.
+
2000-03-28 Paul D. Smith <psmith@gnu.org>
* Version 3.78.92 released.
diff --git a/remake.c b/remake.c
index a2b2127..ad0d3e5 100644
--- a/remake.c
+++ b/remake.c
@@ -1097,7 +1097,7 @@ f_mtime (file, search)
/* The archive doesn't exist, so it's members don't exist either. */
return (FILE_TIMESTAMP) -1;
- mtime = ar_member_date (file->hname);
+ mtime = FILE_TIMESTAMP_FROM_S_AND_NS (ar_member_date (file->hname), 0);
}
else
#endif