Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xinstall mtree spec files want nanoseconds, so multi...
details: https://anonhg.NetBSD.org/src/rev/3401b815aeba
branches: trunk
changeset: 330390:3401b815aeba
user: apb <apb%NetBSD.org@localhost>
date: Sun Jul 06 20:54:47 2014 +0000
description:
mtree spec files want nanoseconds, so multiply the microseconds by 1000.
diffstat:
usr.bin/xinstall/xinstall.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 252c9d5f7108 -r 3401b815aeba usr.bin/xinstall/xinstall.c
--- a/usr.bin/xinstall/xinstall.c Sun Jul 06 20:50:03 2014 +0000
+++ b/usr.bin/xinstall/xinstall.c Sun Jul 06 20:54:47 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xinstall.c,v 1.116 2014/07/06 20:50:03 apb Exp $ */
+/* $NetBSD: xinstall.c,v 1.117 2014/07/06 20:54:47 apb Exp $ */
/*
* Copyright (c) 1987, 1993
@@ -46,7 +46,7 @@
#if 0
static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93";
#else
-__RCSID("$NetBSD: xinstall.c,v 1.116 2014/07/06 20:50:03 apb Exp $");
+__RCSID("$NetBSD: xinstall.c,v 1.117 2014/07/06 20:54:47 apb Exp $");
#endif
#endif /* not lint */
@@ -1202,10 +1202,10 @@
if (*type == 'f') /* type=file */
fprintf(metafp, " size=%lld", (long long)size);
if (tv != NULL && dopreserve)
- fprintf(metafp, " time=%lld.%0*ld",
+ fprintf(metafp, " time=%lld.%0*lld",
(long long)tv[1].tv_sec,
(tv[1].tv_usec == 0 ? 1 : 9),
- (long)tv[1].tv_usec);
+ (long long)tv[1].tv_usec * 1000);
if (digestresult && digest)
fprintf(metafp, " %s=%s", digest, digestresult);
if (fflags)
Home |
Main Index |
Thread Index |
Old Index