sysctl: fix file parsing, do not require -w for VAR=VAL
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 5 Aug 2017 11:45:22 +0000 (13:45 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 5 Aug 2017 11:45:22 +0000 (13:45 +0200)
commit9cf89cdf84fb20154088145980b676d2b28fc55d
tree436a0d02edc588782ca00796e14469288c3baa8d
parentfeb79e8742eb3cef211804dadcc7f3ddfd154c72
sysctl: fix file parsing, do not require -w for VAR=VAL

function                                             old     new   delta
sysctl_act_on_setting                                  -     451    +451
sysctl_main                                          222     282     +60
packed_usage                                       31744   31793     +49
config_read                                          604     639     +35
sysctl_act_recursive                                 612     163    -449
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/1 up/down: 595/-449)          Total: 146 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/parse_config.c
procps/sysctl.c
testsuite/mdev.tests
testsuite/parse.tests