Package: rpcbind
Version: 0.2.3-0.4
Severity: normal
Tags: patch pending

Dear maintainer,

I've prepared an NMU for rpcbind (versioned as 0.2.3-0.5). The diff
is attached to this message.

Regards.
diff -Nru rpcbind-0.2.3/debian/changelog rpcbind-0.2.3/debian/changelog
--- rpcbind-0.2.3/debian/changelog      2016-05-31 11:55:19.000000000 +0200
+++ rpcbind-0.2.3/debian/changelog      2016-06-17 17:54:27.000000000 +0200
@@ -1,3 +1,12 @@
+rpcbind (0.2.3-0.5) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Do not create empty /run/rpcbind/rpcbind.xdr or /run/rpcbind/portmap.xdr
+    files during startup if they don't exist, it makes the daemon generate a
+    warning.
+
+ -- Laurent Bigonville <bi...@debian.org>  Fri, 17 Jun 2016 17:54:02 +0200
+
 rpcbind (0.2.3-0.4) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru rpcbind-0.2.3/debian/init.d rpcbind-0.2.3/debian/init.d
--- rpcbind-0.2.3/debian/init.d 2016-05-30 20:20:04.000000000 +0200
+++ rpcbind-0.2.3/debian/init.d 2016-06-17 17:11:38.000000000 +0200
@@ -42,15 +42,7 @@
         log_end_msg 1
         exit 1
     fi
-    if [ ! -f $STATEDIR/rpcbind.xdr ]
-    then
-        touch $STATEDIR/rpcbind.xdr
-    fi
-    if [ ! -f $STATEDIR/portmap.xdr ]
-    then
-        touch $STATEDIR/portmap.xdr
-    fi
-    [ -x /sbin/restorecon ] && /sbin/restorecon $STATEDIR/*.xdr
+    [ -x /sbin/restorecon ] && /sbin/restorecon $STATEDIR
     pid=$( pidofproc /sbin/rpcbind )
     if [ -n "$pid" ]
     then
diff -Nru rpcbind-0.2.3/debian/rpcbind.tmpfile 
rpcbind-0.2.3/debian/rpcbind.tmpfile
--- rpcbind-0.2.3/debian/rpcbind.tmpfile        2015-11-05 16:45:48.000000000 
+0100
+++ rpcbind-0.2.3/debian/rpcbind.tmpfile        2016-06-17 17:07:50.000000000 
+0200
@@ -1,4 +1,2 @@
 #Type  Path                            Mode    UID     GID     Age     
Arguments
 d      /run/rpcbind                    0755    root    root    -       -
-f      /run/rpcbind/rpcbind.xdr        0600    root    root    -       -
-f      /run/rpcbind/portmap.xdr        0600    root    root    -       -

Reply via email to