From 12b3a6d71112fe3147490f1b6dd15e8a4e0045b7 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Wed, 27 Apr 2011 21:59:11 +0200 Subject: [PATCH] Remove "local" in non-function context in init-functions wrapper. --- debian/changelog | 1 + debian/init-functions | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index ac8ee35f..1f982f02 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ systemd (25-2) experimental; urgency=low /lib/lsb/init-functions on downgrades to << 25-1. * Cherry-pick a133bf10d09f788079b82f63faa7058a27ba310b from upstream, avoids assert when dumping properties. Closes: #624094 + * Remove "local" in non-function context in init-functions wrapper. -- diff --git a/debian/init-functions b/debian/init-functions index 0c1d599d..ab8a04fe 100644 --- a/debian/init-functions +++ b/debian/init-functions @@ -26,9 +26,9 @@ if [ -e /sys/fs/cgroup/systemd ] ; then _use_systemctl=1 fi # Redirect if there's a matching .service file in /etc or /lib - local prog=${0##*/} - local service="${prog%.sh}.service" - local fp=$(systemctl -p FragmentPath show $service 2>/dev/null | sed 's/^FragmentPath=//') + prog=${0##*/} + service="${prog%.sh}.service" + fp=$(systemctl -p FragmentPath show $service 2>/dev/null | sed 's/^FragmentPath=//') case "$fp" in /lib/systemd/system/*|/etc/systemd/system/*) _use_systemctl=1 -- 2.39.5