Fixed GID lookup in cases where the configured group is a prefix of another group.

This commit is contained in:
Tobias Brunner
2009-07-20 21:20:03 +02:00
parent 9af7715c3d
commit 6ff7ab850b
+1 -1
View File
@@ -792,7 +792,7 @@ else
AC_MSG_ERROR([not found])
fi
AC_MSG_CHECKING([for gid of group "$ipsecgroup"])
ipsecgid=`$EGREP "^$ipsecgroup" /etc/group | $AWK -F: '{ print $3 }'`
ipsecgid=`$EGREP "^$ipsecgroup:" /etc/group | $AWK -F: '{ print $3 }'`
if test -n "$ipsecgid"; then
AC_MSG_RESULT([$ipsecgid])
AC_SUBST(ipsecgid)