summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-07-08 15:06:35 +0200
committerMichał Górny <mgorny@gentoo.org>2019-07-09 15:29:40 +0200
commit37079e4844246bbae7fea3204c2b3e8e8e24a9a5 (patch)
tree591c34a251127e6bde56dae56bcf019fc79b8b35 /eclass
parentacct-user.eclass: Do not enforce UID unless requested (diff)
downloadgentoo-37079e4844246bbae7fea3204c2b3e8e8e24a9a5.tar.gz
gentoo-37079e4844246bbae7fea3204c2b3e8e8e24a9a5.tar.bz2
gentoo-37079e4844246bbae7fea3204c2b3e8e8e24a9a5.zip
acct-group.eclass: Do not enforce GID unless requested
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>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/acct-group.eclass3
1 files changed, 2 insertions, 1 deletions
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