From 28bc5eab7d7761eac511cae61ec7dab6fee301ab Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 8 Oct 2013 09:36:58 +0200 Subject: [PATCH] Fix group check. Fixes #4816 --- m4/ax_icinga_user_group.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m4/ax_icinga_user_group.m4 b/m4/ax_icinga_user_group.m4 index 531aedfee..9ad1f78e6 100644 --- a/m4/ax_icinga_user_group.m4 +++ b/m4/ax_icinga_user_group.m4 @@ -21,7 +21,7 @@ AC_DEFUN([ACICINGA_CHECK_USER],[ x=$1 y=$2 AC_MSG_CHECKING([if $y user $x exists]) - AS_IF([ id -u $x ], + AS_IF([ getent passwd $x || dscl . -read /Users/$x ], [ AC_MSG_RESULT([found]) ], [ AC_MSG_ERROR([not found]) ]) ]) @@ -30,7 +30,7 @@ AC_DEFUN([ACICINGA_CHECK_GROUP],[ x=$1 y=$2 AC_MSG_CHECKING([if $y group $x exists]) - AS_IF([ id -g $x ], + AS_IF([ getent group $x || dscl . -read /Groups/$x ], [ AC_MSG_RESULT([found]) ], [ AC_MSG_ERROR([not found]) ]) ])