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