From 37079e4844246bbae7fea3204c2b3e8e8e24a9a5 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Mon, 8 Jul 2019 15:06:35 +0200 Subject: acct-group.eclass: Do not enforce GID unless requested MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Correct the enewgroup call not to enforce specified GID unless ACCT_GROUP_ENFORCE_ID is set. Reported-by: Toralf Förster Tested-by: Marek Szuba Closes: https://bugs.gentoo.org/689100 Signed-off-by: Michał Górny --- eclass/acct-group.eclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'eclass') diff --git a/eclass/acct-group.eclass b/eclass/acct-group.eclass index ab9095979ab7..9eab00db690f 100644 --- a/eclass/acct-group.eclass +++ b/eclass/acct-group.eclass @@ -117,7 +117,8 @@ acct-group_pkg_pretend() { 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 -- cgit v1.2.3-65-gdbad