• [gentoo-dev] [PATCH 3/9] qmail.eclass: Use UID 0 instead of root

    From =?UTF-8?q?Ulrich=20M=C3=BCller?=@21:1/5 to All on Sun Mar 27 09:30:01 2022
    Bug: https://bugs.gentoo.org/595908
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>
    ---
    eclass/qmail.eclass | 12 ++++++------
    1 file changed, 6 insertions(+), 6 deletions(-)

    diff --git a/eclass/qmail.eclass b/eclass/qmail.eclass
    index 33157b7e7871..471f2fe7ce5e 100644
    --- a/eclass/qmail.eclass
    +++ b/eclass/qmail.eclass
    @@ -1,4 +1,4 @@
    -# Copyright 1999-2021 Gentoo Authors
    +# Copyright 1999-2022 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # @ECLASS: qmail.eclass
    @@ -133,7 +133,7 @@ qmail_base_install() {
    # subshell to not leak the install options
    (
    einfo "Setting up basic directory hierarchy"
    - diropts -o root -g qmail
    + diropts -o 0 -g qmail
    dodir "${QMAIL_HOME}"/bin
    keepdir "${QMAIL_HOME}"/{control,users}
    diropts -o alias -g qmail
    @@ -145,7 +145,7 @@ qmail_base_install() {
    einfo "Installing all qmail software"
    exeinto "${QMAIL_HOME}"/bin

    - exeopts -o root -g qmail
    + exeopts -o 0 -g qmail
    doexe bouncesaying condredirect config-fast datemail except forward maildir2mbox \
    maildirmake mailsubj predat