summaryrefslogtreecommitdiffstats
path: root/system/cronie/add-l-option.diff
blob: c4c9b83fb4662a84840a10952b780dbac90dd14c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
diff -Naur cronie-1.6.1/man/cron.8 cronie-1.6.1.patched/man/cron.8
--- cronie-1.6.1/man/cron.8	2022-03-22 09:42:22.000000000 -0400
+++ cronie-1.6.1.patched/man/cron.8	2023-08-08 01:55:44.680979225 -0400
@@ -22,7 +22,7 @@
 .\"
 .\" $Id: cron.8,v 1.8 2004/01/23 19:03:32 vixie Exp $
 .\"
-.TH CRON "8" "2013-09-26" "cronie" "System Administration"
+.TH CRON "8" "2023-08-08" "cronie" "System Administration"
 .SH NAME
 crond \- daemon to execute scheduled commands
 .SH SYNOPSIS
@@ -197,6 +197,9 @@
 .TP
 .B "\-V"
 Print version and exit.
+.TP
+.B "\-l" <level>
+Ignored. Option added for compatibility with dcron.
 .SH SIGNALS
 When the
 .I SIGHUP
diff -Naur cronie-1.6.1/src/cron.c cronie-1.6.1.patched/src/cron.c
--- cronie-1.6.1/src/cron.c	2022-03-22 09:42:22.000000000 -0400
+++ cronie-1.6.1.patched/src/cron.c	2023-08-08 01:52:41.016996510 -0400
@@ -190,6 +190,7 @@
 	fprintf(stderr, " -s         log into syslog instead of sending mails\n");
 	fprintf(stderr, " -V         print version and exit\n");
 	fprintf(stderr, " -x <flag>  print debug information\n");
+	fprintf(stderr, " -l <arg>   ignored, for dcron compatibility\n");
 	fprintf(stderr, "\n");
 	fprintf(stderr, "Debugging flags are: ");
 	for (dflags = DebugFlagNames; *dflags; dflags++)
@@ -691,7 +692,7 @@
 static void parse_args(int argc, char *argv[]) {
 	int argch;
 
-	while (-1 != (argch = getopt(argc, argv, "hnfpsiPx:m:cV"))) {
+	while (-1 != (argch = getopt(argc, argv, "hnfpsiPx:m:cVl:"))) {
 		switch (argch) {
 			case 'x':
 				if (!set_debug_flags(optarg))
@@ -722,6 +723,9 @@
 			case 'V':
 				puts(PACKAGE_STRING);
 				exit(EXIT_SUCCESS);
+			case 'l':
+				/* do nothing (ignore -l <whatever>) */
+				break;
 			case 'h':
 			default:
 				usage();