Hi, This patch will fix how brctl commands setfd, setmaxage, sethello, with timespec passed as 0. Without the fix, it's not possible to set say forward delay to 0.
maciek
From 068191a571ddf83416379bf4d3a9d4f33ba5139e Mon Sep 17 00:00:00 2001 From: Maciek Borzecki <[email protected]> Date: Tue, 16 Mar 2010 12:41:29 +0100 Subject: [PATCH] brctl: fix parins of timespec (setfd, sethello..) --- networking/brctl.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/networking/brctl.c b/networking/brctl.c index 57074cd..1da6953 100644 --- a/networking/brctl.c +++ b/networking/brctl.c @@ -48,8 +48,9 @@ static ALWAYS_INLINE void strtotimeval(struct timeval *tv, { double secs; #if BRCTL_USE_INTERNAL - secs = /*bb_*/strtod(time_str, NULL); - if (!secs) + char * endptr = NULL; + secs = /*bb_*/strtod(time_str, &endptr); + if (endptr == time_str) #else if (sscanf(time_str, "%lf", &secs) != 1) #endif -- 1.6.0.4
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
