Fix: ACICINGA_CHECK_USER doesn't work on OS X or when using NIS.

This commit is contained in:
Gunnar Beutner 2013-09-28 08:19:20 +02:00
parent cd4d3e6e8e
commit 09db65fcd0
1 changed files with 1 additions and 1 deletions

View File

@ -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]) ])
])