sampson@killer.UUCP (Steve Sampson) (02/15/88)
[]
A few small changes to the recent cron.c I put up.
Delete the text:
/*
* fopen() will create the file if it does not exist.
* Any other errors will be output to stderr at startup.
*/
Fopen() doesn't do that.
Change the access function to:
if (access(CRONTAB, 4) == -1) {
fprintf(err,"%s has no read permission %s",CRONTAB,ctime(&cur_time));
return;
}
I had "1" which was the execute bit (ie, 4=R, 2=W, 1=E).
The rest seems to be working ok.
------------------------------------------------------------------------------
Steve,
Nicaraguan Freedom Air
"Badges! We don't need no stinking Badges!"
sampson@killer.UUCP, or ihnp4!killer!sampson
"This software has no military restrictions, wimps aren't allowed though..."
------------------------------------------------------------------------------