[git commit master 1/1] date: trivial fix - was reading seconds into nanoseconds field! DOH
Denys Vlasenko
vda.linux at googlemail.com
Sat Jun 12 01:32:22 UTC 2010
commit: http://git.busybox.net/busybox/commit/?id=e2b41cfb4be2486d9f2d50a8d750eed15c29320e
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
coreutils/date.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/coreutils/date.c b/coreutils/date.c
index c3478fa..8f9aff8 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -210,7 +210,7 @@ int date_main(int argc UNUSED_PARAM, char **argv)
#if ENABLE_FEATURE_DATE_NANO
clock_gettime(CLOCK_REALTIME, &ts);
#else
- time(&ts.tv_nsec);
+ time(&ts.tv_sec);
#endif
}
localtime_r(&ts.tv_sec, &tm_time);
--
1.7.1
More information about the busybox-cvs
mailing list