From f955cf0f8de812c2d7523ac95174027cb9062d31 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 1 Nov 2007 01:03:52 +0000 Subject: [PATCH] - use shell construct to test is pathname full path svn-id: @8927 --- rc.d/init.d/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index c2a181b3..ccaeba19 100644 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -707,7 +707,7 @@ pidofproc() fi # First try pidfile or "/var/run/*.pid" - if (echo "${pidfile}" | grep -Eq "^/"); then + if [[ "$pidfile" = /* ]]; then pidfile="${pidfile}" else pidfile="/var/run/${pidfile}"; -- 2.44.0