mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
parent
7bceccc563
commit
2a7aeaa68d
13
package/busybox/patches/801-brctl_zero_time.patch
Normal file
13
package/busybox/patches/801-brctl_zero_time.patch
Normal file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user