From b7b92bafe759854ad05038f1d48a69e358a7ccbf Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 14 Oct 2016 10:54:24 +0200 Subject: BUILD: Only search for service in /sbin and /usr/sbin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The shell is executed for invocation of the service binary. Therefore it is better to search the binary only in safe paths. Reviewed-by: Lukáš Slebodník --- src/external/service.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/external/service.m4 b/src/external/service.m4 index f475f26e3..1e6e18918 100644 --- a/src/external/service.m4 +++ b/src/external/service.m4 @@ -1,5 +1,5 @@ AC_DEFUN([CHECK_SERVICE_EXECUTABLE], - [ AC_PATH_PROG(SERVICE, service) + [ AC_PATH_PROG([SERVICE], [service], [], [/sbin:/usr/sbin]) AC_MSG_CHECKING(for the executable \"service\") if test -x "$SERVICE"; then AC_DEFINE(HAVE_SERVICE, 1, [Whether the service command is available]) -- cgit