From 09db65fcd0d27d65d3d211aed8000cb5d834512f Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 28 Sep 2013 08:19:20 +0200 Subject: [PATCH] Fix: ACICINGA_CHECK_USER doesn't work on OS X or when using NIS. --- m4/ax_icinga_user_group.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) ]) ]) -- 2.40.0