[packages/rc-scripts] - rel 3; fix sysctl.d/ handling

arekm arekm at pld-linux.org
Fri Jan 5 19:35:18 CET 2018


commit 646f490fa1b7598f7b7df0ef0534dce8485591f0
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Jan 5 19:35:11 2018 +0100

    - rel 3; fix sysctl.d/ handling

 rc-scripts-sysctl.patch | 26 ++++++++++++++++++++++++++
 rc-scripts.spec         |  4 +++-
 2 files changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/rc-scripts.spec b/rc-scripts.spec
index f439f83..c0f60eb 100644
--- a/rc-scripts.spec
+++ b/rc-scripts.spec
@@ -11,7 +11,7 @@ Summary(pl.UTF-8):	inittab i skrypty startowe z katalogu /etc/rc.d
 Summary(tr.UTF-8):	inittab ve /etc/rc.d dosyaları
 Name:		rc-scripts
 Version:	0.4.16
-Release:	2
+Release:	3
 License:	GPL v2
 Group:		Base
 #Source0:	ftp://distfiles.pld-linux.org/src/%{name}-%{version}.tar.gz
@@ -23,6 +23,7 @@ Source3:	%{name}.tmpfiles
 Patch0:		%{name}-git.patch
 Patch1:		%{name}-modprobe-cache.patch
 Patch2:		%{name}-selinuxfs.patch
+Patch3:		%{name}-sysctl.patch
 URL:		http://svn.pld-linux.org/trac/svn/wiki/packages/rc-scripts
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -143,6 +144,7 @@ po cichu ignorowane.
 #%patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 # hack, currently this results in errno@@GLIBC_PRIVATE symbol in ppp-watch:
 #GLIB_LIBS="-Wl,-static `$PKG_CONFIG --libs --static glib-2.0` -Wl,-Bdynamic"
diff --git a/rc-scripts-sysctl.patch b/rc-scripts-sysctl.patch
new file mode 100644
index 0000000..6b2f701
--- /dev/null
+++ b/rc-scripts-sysctl.patch
@@ -0,0 +1,26 @@
+commit 2cb59275d1432da76a021416a7e65718476cebea
+Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
+Date:   Fri Jan 5 19:32:28 2018 +0100
+
+    Quote filename when checking. Without that * is expanded causing problems.
+
+diff --git a/lib/functions b/lib/functions
+index 74f4c95..9716981 100644
+--- a/lib/functions
++++ b/lib/functions
+@@ -182,12 +182,12 @@ apply_sysctl() {
+ 
+ 	local file
+ 	for file in /usr/lib/sysctl.d/*.conf; do
+-		[ -f /run/sysctl.d/${file##*/} ] && continue
+-		[ -f /etc/sysctl.d/${file##*/} ] && continue
++		[ -f "/run/sysctl.d/${file##*/}" ] && continue
++		[ -f "/etc/sysctl.d/${file##*/}" ] && continue
+ 		test -f "$file" && sysctl -q -e -p "$file"
+ 	done
+ 	for file in /run/sysctl.d/*.conf; do
+-		[ -f /etc/sysctl.d/${file##*/} ] && continue
++		[ -f "/etc/sysctl.d/${file##*/}" ] && continue
+ 		test -f "$file" && sysctl -q -e -p "$file"
+ 	done
+ 	for file in /etc/sysctl.d/*.conf; do
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rc-scripts.git/commitdiff/646f490fa1b7598f7b7df0ef0534dce8485591f0



More information about the pld-cvs-commit mailing list