From: Gunnar Beutner Date: Sat, 28 Sep 2013 06:19:20 +0000 (+0200) Subject: Fix: ACICINGA_CHECK_USER doesn't work on OS X or when using NIS. X-Git-Tag: v0.0.3~349 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09db65fcd0d27d65d3d211aed8000cb5d834512f;p=icinga2 Fix: ACICINGA_CHECK_USER doesn't work on OS X or when using NIS. --- diff --git a/m4/ax_icinga_user_group.m4 b/m4/ax_icinga_user_group.m4 index b6672ea6b..71998689e 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([ $GREP -q "^$x:" /etc/passwd ], + AS_IF([ id -u $x ], [ AC_MSG_RESULT([found]) ], [ AC_MSG_ERROR([not found]) ]) ])