]> granicus.if.org Git - procps-ng/commit
sysctl: Support systemd glob patterns
authorCraig Small <csmall@dropbear.xyz>
Mon, 13 Sep 2021 12:07:37 +0000 (22:07 +1000)
committerCraig Small <csmall@dropbear.xyz>
Wed, 15 Sep 2021 10:07:32 +0000 (20:07 +1000)
commit6389deca5bf667f5fab5912acde78ba8e0febbc7
treedb253db3f3b6549664ac44c415f350a5f684b640
parent8c23dfdcd4d2abeb4ca8f5a20cae043c3c4ae60e
sysctl: Support systemd glob patterns

systemd-sysctl handles glob patterns along with overrides and
exceptions. Now the procps sysctl does it too.

The return value for sysctl is consistently either 0 or 1.

Added tests to check sysctl functions.

References:
 procps-ng/procps#191

Signed-off-by: Craig Small <csmall@dropbear.xyz>
NEWS
sysctl.c
testsuite/config/unix.exp
testsuite/sysctl.test/sysctl_write.exp [new file with mode: 0644]
testsuite/sysctl_glob_test.conf [new file with mode: 0644]