summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2022-03-26 10:22:52 +0100
committerUlrich Müller <ulm@gentoo.org>2022-03-28 21:47:16 +0200
commit0295d66cf7cbc1b719c1325c1442f9404de2ba69 (patch)
treeadd2a5e66d32abf115d11b6e71edd526f9961f02 /eclass
parentfcaps.eclass: Use UID 0 instead of root (diff)
downloadgentoo-0295d66cf7cbc1b719c1325c1442f9404de2ba69.tar.gz
gentoo-0295d66cf7cbc1b719c1325c1442f9404de2ba69.tar.bz2
gentoo-0295d66cf7cbc1b719c1325c1442f9404de2ba69.zip
cron.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')
-rw-r--r--eclass/cron.eclass12
1 files changed, 6 insertions, 6 deletions
diff --git a/eclass/cron.eclass b/eclass/cron.eclass
index 81f963a4f722..3198c181f21b 100644
--- a/eclass/cron.eclass
+++ b/eclass/cron.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: cron.eclass
@@ -44,12 +44,12 @@ done
# Both arguments are optional. Everything after 'dir' is considered
# the permissions (same format as insopts).
#
-# ex: docrondir /some/dir -m 0770 -o root -g cron
+# ex: docrondir /some/dir -m 0770 -o 0 -g cron
# docrondir /some/dir (uses default perms)
# docrondir -m0700 (uses default dir)
docrondir() {
# defaults
- local perms="-m0750 -o root -g cron" dir="/var/spool/cron/crontabs"
+ local perms="-m0750 -o 0 -g cron" dir="/var/spool/cron/crontabs"
if [[ -n $1 ]] ; then
case "$1" in
@@ -78,10 +78,10 @@ docrondir() {
#
# Both arguments are optional.
#
-# ex: docron -m 0700 -o root -g root ('exe' defaults to "cron")
+# ex: docron -m 0700 -o 0 -g root ('exe' defaults to "cron")
# docron crond -m 0110
docron() {
- local cron="cron" perms="-m 0750 -o root -g wheel"
+ local cron="cron" perms="-m 0750 -o 0 -g wheel"
if [[ -n $1 ]] ; then
case "$1" in
@@ -111,7 +111,7 @@ docron() {
#
# Uses same semantics as docron.
docrontab() {
- local crontab="crontab" perms="-m 4750 -o root -g cron"
+ local crontab="crontab" perms="-m 4750 -o 0 -g cron"
if [[ -n $1 ]] ; then
case "$1" in