aboutsummaryrefslogtreecommitdiffstats
path: root/package/busybox
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2008-11-09 22:38:59 +0000
committerNicolas Thill <nico@openwrt.org>2008-11-09 22:38:59 +0000
commit2a7aeaa68d9bba93fd01a6b16e595b2479cb36a6 (patch)
treeef5049fe06a6cd4b070c52e12048d12a12cb663d /package/busybox
parent7bceccc5633cb3fe45933fcd3db24e59023d96ec (diff)
downloadupstream-2a7aeaa68d9bba93fd01a6b16e595b2479cb36a6.tar.gz
upstream-2a7aeaa68d9bba93fd01a6b16e595b2479cb36a6.tar.bz2
upstream-2a7aeaa68d9bba93fd01a6b16e595b2479cb36a6.zip
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
Diffstat (limited to 'package/busybox')
-rw-r--r--package/busybox/patches/801-brctl_zero_time.patch13
1 files changed, 13 insertions, 0 deletions
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 0000000000..e083f9f71f
--- /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