]> git.pld-linux.org Git - packages/rc-scripts.git/blob - rc-scripts-sysctl.patch
- rel 3; fix sysctl.d/ handling
[packages/rc-scripts.git] / rc-scripts-sysctl.patch
1 commit 2cb59275d1432da76a021416a7e65718476cebea
2 Author: Arkadiusz Miƛkiewicz <arekm@maven.pl>
3 Date:   Fri Jan 5 19:32:28 2018 +0100
4
5     Quote filename when checking. Without that * is expanded causing problems.
6
7 diff --git a/lib/functions b/lib/functions
8 index 74f4c95..9716981 100644
9 --- a/lib/functions
10 +++ b/lib/functions
11 @@ -182,12 +182,12 @@ apply_sysctl() {
12  
13         local file
14         for file in /usr/lib/sysctl.d/*.conf; do
15 -               [ -f /run/sysctl.d/${file##*/} ] && continue
16 -               [ -f /etc/sysctl.d/${file##*/} ] && continue
17 +               [ -f "/run/sysctl.d/${file##*/}" ] && continue
18 +               [ -f "/etc/sysctl.d/${file##*/}" ] && continue
19                 test -f "$file" && sysctl -q -e -p "$file"
20         done
21         for file in /run/sysctl.d/*.conf; do
22 -               [ -f /etc/sysctl.d/${file##*/} ] && continue
23 +               [ -f "/etc/sysctl.d/${file##*/}" ] && continue
24                 test -f "$file" && sysctl -q -e -p "$file"
25         done
26         for file in /etc/sysctl.d/*.conf; do
This page took 0.042984 seconds and 4 git commands to generate.