1 |
Bug: https://bugs.gentoo.org/595908 |
2 |
Signed-off-by: Ulrich Müller <ulm@g.o> |
3 |
--- |
4 |
eclass/cron.eclass | 12 ++++++------ |
5 |
1 file changed, 6 insertions(+), 6 deletions(-) |
6 |
|
7 |
diff --git a/eclass/cron.eclass b/eclass/cron.eclass |
8 |
index 81f963a4f722..3198c181f21b 100644 |
9 |
--- a/eclass/cron.eclass |
10 |
+++ b/eclass/cron.eclass |
11 |
@@ -1,4 +1,4 @@ |
12 |
-# Copyright 1999-2021 Gentoo Authors |
13 |
+# Copyright 1999-2022 Gentoo Authors |
14 |
# Distributed under the terms of the GNU General Public License v2 |
15 |
|
16 |
# @ECLASS: cron.eclass |
17 |
@@ -44,12 +44,12 @@ done |
18 |
# Both arguments are optional. Everything after 'dir' is considered |
19 |
# the permissions (same format as insopts). |
20 |
# |
21 |
-# ex: docrondir /some/dir -m 0770 -o root -g cron |
22 |
+# ex: docrondir /some/dir -m 0770 -o 0 -g cron |
23 |
# docrondir /some/dir (uses default perms) |
24 |
# docrondir -m0700 (uses default dir) |
25 |
docrondir() { |
26 |
# defaults |
27 |
- local perms="-m0750 -o root -g cron" dir="/var/spool/cron/crontabs" |
28 |
+ local perms="-m0750 -o 0 -g cron" dir="/var/spool/cron/crontabs" |
29 |
|
30 |
if [[ -n $1 ]] ; then |
31 |
case "$1" in |
32 |
@@ -78,10 +78,10 @@ docrondir() { |
33 |
# |
34 |
# Both arguments are optional. |
35 |
# |
36 |
-# ex: docron -m 0700 -o root -g root ('exe' defaults to "cron") |
37 |
+# ex: docron -m 0700 -o 0 -g root ('exe' defaults to "cron") |
38 |
# docron crond -m 0110 |
39 |
docron() { |
40 |
- local cron="cron" perms="-m 0750 -o root -g wheel" |
41 |
+ local cron="cron" perms="-m 0750 -o 0 -g wheel" |
42 |
|
43 |
if [[ -n $1 ]] ; then |
44 |
case "$1" in |
45 |
@@ -111,7 +111,7 @@ docron() { |
46 |
# |
47 |
# Uses same semantics as docron. |
48 |
docrontab() { |
49 |
- local crontab="crontab" perms="-m 4750 -o root -g cron" |
50 |
+ local crontab="crontab" perms="-m 4750 -o 0 -g cron" |
51 |
|
52 |
if [[ -n $1 ]] ; then |
53 |
case "$1" in |
54 |
-- |
55 |
2.35.1 |