- Mention possibility of disabling logging to syslog in a crontab manual. - Better error report, when ^ tried as an unprivileged user OBS-URL: https://build.opensuse.org/request/show/72736 OBS-URL: https://build.opensuse.org/package/show/Base:System/cronie?expand=0&rev=80
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
Index: cronie-1.4.7/man/crontab.5
|
|
===================================================================
|
|
--- cronie-1.4.7.orig/man/crontab.5
|
|
+++ cronie-1.4.7/man/crontab.5
|
|
@@ -203,6 +203,9 @@ fields. Use the first three letters of
|
|
day or month (case does not matter). Ranges or
|
|
lists of names are not allowed.
|
|
.PP
|
|
+If the uid of the owner is 0 (root), he can put a "-" as first character of a crontab entry.
|
|
+This will prevent cron from writing a syslog message about this command getting executed.
|
|
+.PP
|
|
The "sixth" field (the rest of the line) specifies the command to be
|
|
run.
|
|
The entire command portion of the line, up to a newline or a "%"
|
|
Index: cronie-1.4.7/src/entry.c
|
|
===================================================================
|
|
--- cronie-1.4.7.orig/src/entry.c
|
|
+++ cronie-1.4.7/src/entry.c
|
|
@@ -110,7 +110,7 @@ entry *load_entry(FILE * file, void (*er
|
|
e->flags |= DONT_LOG;
|
|
else {
|
|
log_it("CRON", getpid(), "ERROR", "Only privileged user can disable logging", 0);
|
|
- ecode = e_option;
|
|
+ ecode = e_minute;
|
|
goto eof;
|
|
}
|
|
ch = get_char(file);
|