aboutsummaryrefslogtreecommitdiff
path: root/networking/brctl.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2021-03-23 13:50:02 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2021-03-23 13:50:02 +0100
commitc2bd0b680667c7ec4956552f75d9ff7d040ac941 (patch)
tree8d117fedfebe03f6f97071ebc522d4ac03f08c47 /networking/brctl.c
parent14ed4ec8a416a60a214bf40f9185aa227ac44598 (diff)
downloadbusybox-w32-c2bd0b680667c7ec4956552f75d9ff7d040ac941.tar.gz
busybox-w32-c2bd0b680667c7ec4956552f75d9ff7d040ac941.tar.bz2
busybox-w32-c2bd0b680667c7ec4956552f75d9ff7d040ac941.zip
timeout,top,watch,ping: parse NN.N fractional duration in locales with other separators
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to '')
-rw-r--r--networking/brctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/brctl.c b/networking/brctl.c
index e1f3e6445..c83aac6e0 100644
--- a/networking/brctl.c
+++ b/networking/brctl.c
@@ -89,6 +89,7 @@ static unsigned str_to_jiffies(const char *time_str)
89{ 89{
90 double dd; 90 double dd;
91 char *endptr; 91 char *endptr;
92//TODO: needs setlocale(LC_NUMERIC, "C")?
92 dd = /*bb_*/strtod(time_str, &endptr); 93 dd = /*bb_*/strtod(time_str, &endptr);
93 if (endptr == time_str || dd < 0) 94 if (endptr == time_str || dd < 0)
94 bb_error_msg_and_die(bb_msg_invalid_arg_to, time_str, "timespec"); 95 bb_error_msg_and_die(bb_msg_invalid_arg_to, time_str, "timespec");