Path: utzoo!mnetor!uunet!husc6!rutgers!mtune!codas!killer!sampson From: sampson@killer.UUCP (Steve Sampson) Newsgroups: comp.os.minix Subject: Cron.c Pick a bug, any bug... Message-ID: <3314@killer.UUCP> Date: 15 Feb 88 02:07:11 GMT Organization: The Unix(R) Connection, Dallas, Texas Lines: 32 [] 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..." ------------------------------------------------------------------------------