Sisyphus repository
Last update: 17 december 2017 | SRPMs: 18242 | Visits: 10592461
en ru br
ALT Linux repos
S:4.1.20060426-alt10
5.0: 4.1.20060426-alt6
4.1: 4.1.20060426-alt4
4.0: 4.1.20060426-alt4
3.0: 4.1.20040916-alt2

Group :: System/Servers
RPM: vixie-cron

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: vixie-cron-4.1.20040916-alt-crontab-template.patch
Download


diff -uprk.orig vixie-cron-4.1.20040916.orig/usr.sbin/cron/crontab.c vixie-cron-4.1.20040916/usr.sbin/cron/crontab.c
--- vixie-cron-4.1.20040916.orig/usr.sbin/cron/crontab.c	2004-11-03 01:26:27 +0300
+++ vixie-cron-4.1.20040916/usr.sbin/cron/crontab.c	2004-11-03 01:26:46 +0300
@@ -35,6 +35,7 @@ static char const rcsid[] = "$OpenBSD: c
 #include "cron.h"
 
 #define NHEADER_LINES 3
+#define CRONTAB_TEMPLATE "/etc/crontab.template"
 
 enum opt_t	{ opt_unknown, opt_list, opt_delete, opt_edit, opt_replace };
 
@@ -309,8 +310,8 @@ edit_cmd(void) {
 		}
 		fprintf(stderr, "no crontab for %s - using an empty one\n",
 			User);
-		if (!(f = fopen(_PATH_DEVNULL, "r"))) {
-			perror(_PATH_DEVNULL);
+		if (!(f = fopen(CRONTAB_TEMPLATE, "r"))) {
+			perror(CRONTAB_TEMPLATE);
 			exit(ERROR_EXIT);
 		}
 	}
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin