From: nico Date: Sun, 9 Nov 2008 22:38:59 +0000 (+0000) Subject: fix busybox brctl rejecting 0 as a valid value in time-related commands (setageing... X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/0a2871aad2566fff2f64da0d49b9e57d39eb2bd0?hp=875000f68adc598093312913ade3e2a68210b384 fix busybox brctl rejecting 0 as a valid value in time-related commands (setageing, setfd, ...) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13163 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/busybox/patches/801-brctl_zero_time.patch b/package/busybox/patches/801-brctl_zero_time.patch new file mode 100644 index 000000000..e083f9f71 --- /dev/null +++ b/package/busybox/patches/801-brctl_zero_time.patch @@ -0,0 +1,13 @@ +--- a/networking/brctl.c ++++ b/networking/brctl.c +@@ -34,8 +34,9 @@ static ALWAYS_INLINE void strtotimeval(s + { + double secs; + #if BRCTL_USE_INTERNAL ++ errno = 0; + secs = /*bb_*/strtod(time_str, NULL); +- if (!secs) ++ if (errno) + #else + if (sscanf(time_str, "%lf", &secs) != 1) + #endif