417a418 > char eof_buffer; 446a448,464 > > /*Aug 2008 add warning missing new line at end of file > Nick Hill > */ > > if (!statbuf.st_size<2) { > if (lseek(t, -1, SEEK_END)<0){ > fprintf(stderr,"Failed to seek to end -1 character\n"); > } > if (read(t,&eof_buffer, 1)<1){ > fprintf(stderr,"Could not read last character of crontab\n"); > } > if(eof_buffer!='\n' && eof_buffer!='\r'){ > fprintf(stderr,"\n\nWARNING: No new line found at end of file. Crontab may be ignored\n\n"); > } > } >