[Pkg-dns-devel] Bug#864711: During start,	chowning of /run/nsd fails if using sysvinit
    Marcos Del Sol Vives 
    marcos at dracon.es
       
    Tue Jun 13 09:00:20 UTC 2017
    
    
  
Package: nsd
Version: 4.1.14-1
The /etc/init.d/nsd init script has a bug that makes chowning to nsd:nsd 
of /run/nsd fails.
The script in do_tmpfiles reads from /usr/lib/tmpfiles.d/nsd.conf to a 
certain variables, with the last being "group", and then chowns if the 
entry is a directory.
However because /usr/lib/tmpfiles.d/nsd.conf contains two additional 
unused fields (Age and Argument) which contains dashes, the "group" 
variable instead of "nsd" it ends being "nsd - -", which is an invalid 
group indeed.
Attached is a simple patch which simply adds another extra dummy 
variable to hold the unused fields.
Marcos
-------------- next part --------------
--- nsd.old     2017-06-13 10:36:40.702748345 +0200
+++ nsd 2017-06-13 10:36:47.330748081 +0200
@@ -23,7 +23,7 @@
     TMPFILE=/usr/lib/tmpfiles.d/$1.conf
     if [ -r "$TMPFILE" ]; then
-       while read type path mode user group; do
+       while read type path mode user group rest; do
             if [ "$type" = "d" ]; then
                 mkdir -p "$path"
                chmod "$mode" "$path"
    
    
More information about the pkg-dns-devel
mailing list