tag 796921 patch
thanks

here's the patch.

Regards,
Daniel
Author: Daniel Baumann <[email protected]>
Date:   Tue Aug 25 22:18:40 2015 +0200

    Correcting parsing of tmpfile.d file in initscript for sysvinit systems (Closes: #796921).
    
    Signed-off-by: Daniel Baumann <[email protected]>

diff --git a/debian/knot.init b/debian/knot.init
index 031c7cd..9a08122 100644
--- a/debian/knot.init
+++ b/debian/knot.init
@@ -78,18 +78,20 @@ do_reload() {
 }
 
 do_tmpfiles() {
-    local type path mode user group
+    local type path mode user group age argument
     if [ -r "$1" ]; then
 	if [ -x /bin/systemd-tmpfiles ]; then
 	    /bin/systemd-tmpfiles --create "$1"
 	else
-	    while read type path mode user group; do
+	    while read type path mode user group age argument; do
 		case "$type" in
 		    d)
 			mkdir -p "$path";
 			chmod "$mode" "$path";
 			chown "$user:$group" "$path";
 			;;
+		    \#*)
+			;;
 		    *)
 			log_warning_msg "tmpfile.d type '$type' is not supported yet"
 			;;

Reply via email to