25 lines
699 B
Diff
25 lines
699 B
Diff
--- vixie-cron-4.1/crontab.c.CAN-2005-1038 2005-04-14 18:39:04.356618000 -0400
|
|
+++ vixie-cron-4.1/crontab.c 2005-04-14 18:43:50.262425000 -0400
|
|
@@ -497,6 +497,21 @@
|
|
ProgramName);
|
|
goto remove;
|
|
}
|
|
+
|
|
+ if ( (!S_ISREG(statbuf.st_mode))
|
|
+ ||(S_ISLNK(statbuf.st_mode))
|
|
+ ||(S_ISDIR(statbuf.st_mode))
|
|
+ ||(S_ISCHR(statbuf.st_mode))
|
|
+ ||(S_ISBLK(statbuf.st_mode))
|
|
+ ||(S_ISFIFO(statbuf.st_mode))
|
|
+ ||(S_ISSOCK(statbuf.st_mode))
|
|
+ )
|
|
+ {
|
|
+ fprintf(stderr, "%s: illegal crontab\n",
|
|
+ ProgramName);
|
|
+ goto remove;
|
|
+ }
|
|
+
|
|
fprintf(stderr, "%s: installing new crontab\n", ProgramName);
|
|
fclose(NewCrontab);
|
|
NewCrontab=fopen(Filename,"r+");
|