summaryrefslogtreecommitdiff
path: root/usr.sbin/cron
AgeCommit message (Collapse)Author
2003-07-30Use (char *)NULL instead of (char *)0 in execl and execle; Andrey MatveevTodd C. Miller
2003-06-26two missing protosTheo de Raadt
2003-06-17Sync with share/misc/license.template and add missing DARPA creditTodd C. Miller
where applicable.
2003-06-12- section reorderJason McIntyre
- macro fixes - kill whitespace at EOL - new sentence, new line
2003-06-03Don't need 'all right reserved'; brings this into line with my otherTodd C. Miller
ISC-style copyrights.
2003-06-02I'm a dork, I removed the 4th clause of the UCB license instead ofTodd C. Miller
the 3rd one.
2003-05-12feof() can only be used after you actually hit EOF so the checkTodd C. Miller
for no output from the at command was busted. Instead of using feof(), just fread() a buffer's worth and check to see if we got anything back. Closes PR 3252.
2003-04-17Change a few return values from char to int since these functionsTodd C. Miller
can return EOF. Fixes gcc warnings (and potential problems) on ppc.
2003-04-15nasty lies from hobbits, clean them out of commentsTheo de Raadt
2003-04-14Use setproctitle() instead of the CAPITALIZE_FOR_PS hack. InspiredTodd C. Miller
by similar changes in FreeBSD and NetBSD. For at jobs, include the job number in the proctitle.
2003-03-15Use strlcpy() instead of pre-checking the src len and using strcpy()Todd C. Miller
2003-03-12Move range sanity check out of get_number() and into get_range() sinceTodd C. Miller
it was causing problems with symbolic names (and get_range() is really where it belongs anyway). Also allow a range to be followed by a ',' as pointed out by mpech@
2003-03-11Catch more syntax errors that were previously ignored. I've rewrittenTodd C. Miller
get_number() to be more careful about what it accepts and to take a string of terminating characters so it knows what is valid. Also added a range check so that ranges like "60-50" where the first number is greater than the second are now flagged. Thanks to mpech@ for testing finding ways to abuse the parser :-)
2003-03-10these pages all had bad section numbers in the .Xr's;Jason McIntyre
lots of help and ok millert@
2003-03-10Log that cron started up after we detach from the controlling terminalTodd C. Miller
and dup fds to /dev/null, not before. This may fix a possible race when cron is started as the last thing in /etc/rc.
2003-03-10Change a e_username to e_cmd.Todd C. Miller
2003-03-10Back out changes to get_number() that I didn't intend to commit.Todd C. Miller
2003-03-10Do the check for missing command before the un_getchar(); otherwiseTodd C. Miller
the error messages will say line 0. This is because un_getchar('\n', file) will decrement the line count. Noticed by mpech@
2003-03-09Fix error line number reporting for syntax errors (noticed by mpech@).Todd C. Miller
This is relatively tricky due to the way EOF is overloaded. Seems to give a correct line number for all errors I threw at it.
2003-03-09Catch lines w/o EOF. Previously they were silently ignored.Todd C. Miller
2003-03-04Deref the correct passwd pointer in a Debug statement.Todd C. Miller
2003-02-28Fix double Debug() usage, for instance, Debug(DPARS|DEXT...)Mike Pechkin
Make sence if debugging. millert@ ok
2003-02-27Fix parsing of '0' and non-alphanumerics in steps; found by mpech@Todd C. Miller
2003-02-21Improved environment variable parser from FreeBSD (Thomas Quinot).Todd C. Miller
Fixes some issues with quoting and allows no longer mistakes commands starting with a variable assignment for environment variables.
2003-02-20Sync with ISC cron-current + my at(1) integration.Todd C. Miller
The at(1) code is now more tightly integrated into the cron codebase.
2003-02-20If there is no cron.allow or cron.deny file, only the superuser may runTodd C. Miller
the crontab command; for POSIX compliance. Create an empty cron.deny file to allow any user to run crontab: install -c -o root -g crontab -m 660 /dev/null /var/cron/cron.deny
2003-02-20cron.{allow,deny}, not at.{allow,deny}; noticed by Dries SchellekensTodd C. Miller
2003-02-19Mention that /etc/crontab must be mode 0600 if it exists.Todd C. Miller
2003-02-19Move contents of /var/at into /var/cron since at is now intergrated intoTodd C. Miller
cron. When ISC cron 5.0 is out the integration will be even tighter. Also rename /var/cron/{allow,deny} -> /var/cron/cron.{allow,deny} for consistency with POSIX and at.{allow,deny} and install an empty cron.deny file (as we do at.deny) since crontab will require this in the near future for POSIX compliance. After a "make build" you can update your system as follows: # mv /var/at/* /var/cron # mv /var/cron/jobs /var/cron/atjobs # mv /var/cron.allow /var/cron/cron.allow # mv /var/cron.deny /var/cron/cron.deny # rm -rf /var/at # kill `cat /var/run/cron.pid` ; cron
2003-02-18correct a typo from earlier todayTodd C. Miller
2003-02-18Use the SUN_LEN macro to set sun_len correctlyTodd C. Miller
2003-02-17Add a -n flag and version string; from vixieTodd C. Miller
2003-02-01typos;Jason McIntyre
chat(8): removed reference to uucico(8) ok deraadt@
2002-08-10Just zero out pw_passwd in the pw_dup()'d copy. There's no needTodd C. Miller
to do this elsewhere and my previous commit in this area caused problems on systems with an /etc/crontab file.
2002-08-08Move closelog() into log_close() function and call that insteadTodd C. Miller
of calling closelog() (with #ifdefs) directly.
2002-08-08Make wakeupKind an enum for clarity at Vixie's requestTodd C. Miller
2002-08-07paranoia: zero out pw_passwd since we don't need itTodd C. Miller
2002-08-04Extra paranoia -- check that pw_name matches the crontab user's name.Todd C. Miller
Should not really be needed since we do uid checks but it can't hurt.
2002-08-02o Instead of passing "*system*" as the fname to process_crontab()Todd C. Miller
for the system crontab file, pass a NULL pointer instead. This prevents someone from creating a "*system*" file in the tabs directory that acts as an alternate root crontab. o Fix the check for tab file ownership. This really only affected the system crontab file, which must not be owned by root. deraadt@ OK
2002-07-17Include limits.h since we use LONG_MAX; we squeaked by with anTodd C. Miller
implicit inclusion before.
2002-07-15fix typo (pw vs. pwd) in unused codeTodd C. Miller
2002-07-15Pass e->pwd to auth_setpwd() to avoid extra passwd lookup in BSD auth routinesTodd C. Miller
2002-07-15Move login_close() out of #ifdef BSD_AUTH blockTodd C. Miller
2002-07-15-Wall was for testingTodd C. Miller
2002-07-15Move atrun(8) functionality into cron(8) proper. This fixes theTodd C. Miller
long-standing annoyance that atrun's granularity is 10 minutes. Most at jobs run with a 1 minute granularity. Jobs submitted via "at now" or "batch" will run immediately. Includes a rewritten cron(8) man page. at(1) will be integrated more closely into cron at a future date. Upgrading notes: the atrun job in root's crontab should be removed. the /var/at/spool directory is no longer used
2002-07-12Do not collapse \\ -> \ in a command, the shell will be unhappy withTodd C. Miller
bare backslashes.
2002-07-11No need to compare sizes of new/old crontab file now that weTodd C. Miller
stash the st_mtimespec of the original and use that to compare.
2002-07-11More syncing with my cron 4.0 patch tree, basically cosmetic:Todd C. Miller
o change an instance of e_none to e_memory that I missed (forgot?) o kill some whitespace o modify malloc failure recovery a bit
2002-07-11Add a new error code for memory allocation failures, e_memory andTodd C. Miller
use that instead of e_none when we run out of memory.
2002-07-09o Add _PATH_CRON_PID which is built up from PIDDIR and PIDFILE via stringTodd C. Miller
concatenation at compile time rather than run time. o Some minor cosmetic changes to simplify diffing.