Correct the enewgroup call not to enforce specified GID unless
ACCT_GROUP_ENFORCE_ID is set.
Reported-by: Toralf Förster <toralf@gentoo.org>
Tested-by: Marek Szuba <marecki@gentoo.org>
Closes: https://bugs.gentoo.org/689100
Signed-off-by: Michał Górny <mgorny@gentoo.org>
acct-group_pkg_preinst() {
debug-print-function ${FUNCNAME} "${@}"
- enewgroup -F "${ACCT_GROUP_NAME}" "${ACCT_GROUP_ID}"
+ enewgroup ${ACCT_GROUP_ENFORCE_ID:+-F} "${ACCT_GROUP_NAME}" \
+ "${ACCT_GROUP_ID}"
}
fi