fix busybox brctl rejecting 0 as a valid value in time-related commands (setageing, setfd, ...)
SVN-Revision: 13163
This commit is contained in:
parent
774f6c2160
commit
dc1b6a3961
1 changed files with 13 additions and 0 deletions
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…
Reference in a new issue