Fixed GID lookup in cases where the configured group is a prefix of another group.
This commit is contained in:
+1
-1
@@ -792,7 +792,7 @@ else
|
|||||||
AC_MSG_ERROR([not found])
|
AC_MSG_ERROR([not found])
|
||||||
fi
|
fi
|
||||||
AC_MSG_CHECKING([for gid of group "$ipsecgroup"])
|
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
|
if test -n "$ipsecgid"; then
|
||||||
AC_MSG_RESULT([$ipsecgid])
|
AC_MSG_RESULT([$ipsecgid])
|
||||||
AC_SUBST(ipsecgid)
|
AC_SUBST(ipsecgid)
|
||||||
|
|||||||
Reference in New Issue
Block a user