Version in base suite: 1.10.0-2 Base version: tinyproxy_1.10.0-2 Target version: tinyproxy_1.10.0-2+deb10u1 Base file: /srv/ftp-master.debian.org/ftp/pool/main/t/tinyproxy/tinyproxy_1.10.0-2.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/t/tinyproxy/tinyproxy_1.10.0-2+deb10u1.dsc changelog | 8 ++++++++ tinyproxy.init | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff -Nru tinyproxy-1.10.0/debian/changelog tinyproxy-1.10.0/debian/changelog --- tinyproxy-1.10.0/debian/changelog 2018-10-23 10:47:18.000000000 +0000 +++ tinyproxy-1.10.0/debian/changelog 2020-03-31 10:31:24.000000000 +0000 @@ -1,3 +1,11 @@ +tinyproxy (1.10.0-2+deb10u1) buster; urgency=medium + + * debian/tinyproxy.init: + + Only set PIDDIR, if PIDFILE is a non-zero length string. (Closes: + #948283). + + -- Mike Gabriel Tue, 31 Mar 2020 12:31:24 +0200 + tinyproxy (1.10.0-2) unstable; urgency=medium * debian/changelog: diff -Nru tinyproxy-1.10.0/debian/tinyproxy.init tinyproxy-1.10.0/debian/tinyproxy.init --- tinyproxy-1.10.0/debian/tinyproxy.init 2018-09-04 12:58:13.000000000 +0000 +++ tinyproxy-1.10.0/debian/tinyproxy.init 2020-03-31 10:30:56.000000000 +0000 @@ -39,7 +39,9 @@ GROUP=$(grep -i '^Group[[:space:]]' "$CONFIG" | awk '{print $2}') PIDFILE=$(grep -i '^PidFile[[:space:]]' "$CONFIG" | awk '{print $2}' |\ sed -e 's/"//g') - PIDDIR=`dirname "$PIDFILE"` + if [ -n "$PIDFILE" ];then + PIDDIR=$(dirname "$PIDFILE") + fi if [ -n "$PIDDIR" -a "$PIDDIR" != "/run" ]; then if [ ! -d "$PIDDIR" ]; then mkdir "$PIDDIR"