vixie-cron-4.1-CAN-2005-1038.patch 699 B

12345678910111213141516171819202122232425
  1. --- vixie-cron-4.1/crontab.c.CAN-2005-1038 2005-04-14 18:39:04.356618000 -0400
  2. +++ vixie-cron-4.1/crontab.c 2005-04-14 18:43:50.262425000 -0400
  3. @@ -497,6 +497,21 @@
  4. ProgramName);
  5. goto remove;
  6. }
  7. +
  8. + if ( (!S_ISREG(statbuf.st_mode))
  9. + ||(S_ISLNK(statbuf.st_mode))
  10. + ||(S_ISDIR(statbuf.st_mode))
  11. + ||(S_ISCHR(statbuf.st_mode))
  12. + ||(S_ISBLK(statbuf.st_mode))
  13. + ||(S_ISFIFO(statbuf.st_mode))
  14. + ||(S_ISSOCK(statbuf.st_mode))
  15. + )
  16. + {
  17. + fprintf(stderr, "%s: illegal crontab\n",
  18. + ProgramName);
  19. + goto remove;
  20. + }
  21. +
  22. fprintf(stderr, "%s: installing new crontab\n", ProgramName);
  23. fclose(NewCrontab);
  24. NewCrontab=fopen(Filename,"r+");