summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2022-03-26 10:25:07 +0100
committerUlrich Müller <ulm@gentoo.org>2022-03-28 21:47:16 +0200
commit12a54e0eeefa9f2d80cf7eb57b1736134acad7e8 (patch)
tree4345527aacb71ef64b09f2c70d6a695c38c4c28c /eclass/qmail.eclass
parentcron.eclass: Use UID 0 instead of root (diff)
downloadgentoo-12a54e0eeefa9f2d80cf7eb57b1736134acad7e8.tar.gz
gentoo-12a54e0eeefa9f2d80cf7eb57b1736134acad7e8.tar.bz2
gentoo-12a54e0eeefa9f2d80cf7eb57b1736134acad7e8.zip
qmail.eclass: Use UID 0 instead of root
Bug: https://bugs.gentoo.org/595908 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass/qmail.eclass')
-rw-r--r--eclass/qmail.eclass12
1 files 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 predate preline qbiff \
qmail-{inject,qmqpc,qmqpd,qmtpd,qread,qstat,smtpd,tcpok,tcpto,showctl} \
@@ -158,11 +158,11 @@ qmail_base_install() {
use pop3 && doexe qmail-pop3d
- exeopts -o root -g qmail -m 711
+ exeopts -o 0 -g qmail -m 711
doexe qmail-{clean,getpw,local,pw2u,remote,rspawn,send} splogger
use pop3 && doexe qmail-popup
- exeopts -o root -g qmail -m 700
+ exeopts -o 0 -g qmail -m 700
doexe qmail-{lspawn,newmrh,newu,start}
exeopts -o qmailq -g qmail -m 4711
@@ -262,7 +262,7 @@ qmail_supervise_install_one() {
dosupervise ${1}
# subshell to not leak the install options
(
- diropts -o qmaill -g root
+ diropts -o qmaill -g 0
keepdir /var/log/qmail/${1}
)
}