Age | Commit message (Collapse) | Author | |
---|---|---|---|
2003-03-10 | Back out changes to get_number() that I didn't intend to commit. | Todd C. Miller | |
2003-03-10 | Do the check for missing command before the un_getchar(); otherwise | Todd 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-09 | Fix 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-09 | Catch lines w/o EOF. Previously they were silently ignored. | Todd C. Miller | |
2003-03-04 | Deref the correct passwd pointer in a Debug statement. | Todd C. Miller | |
2003-02-28 | Fix double Debug() usage, for instance, Debug(DPARS|DEXT...) | Mike Pechkin | |
Make sence if debugging. millert@ ok | |||
2003-02-27 | Fix parsing of '0' and non-alphanumerics in steps; found by mpech@ | Todd C. Miller | |
2003-02-21 | Improved 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-20 | Sync 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-20 | If there is no cron.allow or cron.deny file, only the superuser may run | Todd 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-20 | cron.{allow,deny}, not at.{allow,deny}; noticed by Dries Schellekens | Todd C. Miller | |
2003-02-19 | Mention that /etc/crontab must be mode 0600 if it exists. | Todd C. Miller | |
2003-02-19 | Move contents of /var/at into /var/cron since at is now intergrated into | Todd 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-18 | correct a typo from earlier today | Todd C. Miller | |
2003-02-18 | Use the SUN_LEN macro to set sun_len correctly | Todd C. Miller | |
2003-02-17 | Add a -n flag and version string; from vixie | Todd C. Miller | |
2003-02-01 | typos; | Jason McIntyre | |
chat(8): removed reference to uucico(8) ok deraadt@ | |||
2002-08-10 | Just zero out pw_passwd in the pw_dup()'d copy. There's no need | Todd C. Miller | |
to do this elsewhere and my previous commit in this area caused problems on systems with an /etc/crontab file. | |||
2002-08-08 | Move closelog() into log_close() function and call that instead | Todd C. Miller | |
of calling closelog() (with #ifdefs) directly. | |||
2002-08-08 | Make wakeupKind an enum for clarity at Vixie's request | Todd C. Miller | |
2002-08-07 | paranoia: zero out pw_passwd since we don't need it | Todd C. Miller | |
2002-08-04 | Extra 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-02 | o 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-17 | Include limits.h since we use LONG_MAX; we squeaked by with an | Todd C. Miller | |
implicit inclusion before. | |||
2002-07-15 | fix typo (pw vs. pwd) in unused code | Todd C. Miller | |
2002-07-15 | Pass e->pwd to auth_setpwd() to avoid extra passwd lookup in BSD auth routines | Todd C. Miller | |
2002-07-15 | Move login_close() out of #ifdef BSD_AUTH block | Todd C. Miller | |
2002-07-15 | -Wall was for testing | Todd C. Miller | |
2002-07-15 | Move atrun(8) functionality into cron(8) proper. This fixes the | Todd 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-12 | Do not collapse \\ -> \ in a command, the shell will be unhappy with | Todd C. Miller | |
bare backslashes. | |||
2002-07-11 | No need to compare sizes of new/old crontab file now that we | Todd C. Miller | |
stash the st_mtimespec of the original and use that to compare. | |||
2002-07-11 | More 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-11 | Add a new error code for memory allocation failures, e_memory and | Todd C. Miller | |
use that instead of e_none when we run out of memory. | |||
2002-07-09 | o Add _PATH_CRON_PID which is built up from PIDDIR and PIDFILE via string | Todd C. Miller | |
concatenation at compile time rather than run time. o Some minor cosmetic changes to simplify diffing. | |||
2002-07-09 | o Rename clean_turds() in crontab.c to die() and just _exit(ERROR_EXIT) | Todd C. Miller | |
instead of resetting the signal handler to SIG_DFL and redelivering. o Use kill(2) instead of raise(3) (which is just a wrapper) | |||
2002-07-09 | We already did a closelog(); no need for it here. | Todd C. Miller | |
2002-07-08 | minor cosmetic change to reduce diffs | Todd C. Miller | |
2002-07-08 | Merge in some changes from Paul Vixie's tree; most are cosmetic | Todd C. Miller | |
o ANSI function headers o return (foo) not return foo o add -oi to sendmail flags o update email address in man pages o make some strings const o completely remove globbing cruft from popen.c o whitespace changes o add DOW_STAR to flags for "monthly", "weekly", and "daily" cron entries | |||
2002-06-23 | uid_t and gid_t are unsigned | Theo de Raadt | |
2002-06-21 | Correctly close the writing end of the pipe when dup'ing the fd to | Todd C. Miller | |
stdout. This was a pasto/thinko on my part. Problem found by jean-philippe wan-hoi. | |||
2002-06-14 | spelling; from Brian Poole <raj@cerias.purdue.edu> | Todd T. Fries | |
2002-05-28 | Kill an sscanf() in favor of strtol() | Todd C. Miller | |
2002-05-28 | use %ld (long) for pid | Theo de Raadt | |
2002-05-22 | Set close-on-exec flag for the socket cron selects on. | Todd C. Miller | |
2002-05-22 | Remove pid file if sent SIGINT or SIGTERM before exiting. | Todd C. Miller | |
2002-05-22 | o avoid stdio in acquire_daemonlock() so we don't leak FILE * memory | Todd C. Miller | |
o fix potential long vs. int mismatch in pid reading/writing. Note that we can't use pid_t for the type of the variable stashed in the pidfile since we don't have a scanf format for pid_t. Use long instead since we know pid_t can't be bigger than a long. o just return if closeflag is set, regardless of the value of fd o fix potential (unwinnable?) race locking the pid file pointed out by dynamo. Using O_EXLOCK is not portable but it does help in these situations. | |||
2002-05-21 | Better handling of negative timeval than last commit. | Todd C. Miller | |
2002-05-20 | Add a check for negative values in struct timeval after the timersub(). | Todd C. Miller | |
Just treat it like a zero value. Also check for errno != EINTR when select() returns -1. | |||
2002-05-11 | .Xr at 1 | Todd C. Miller | |
2002-05-11 | Put options in a real list, preceded by "The options are as follows" | Todd C. Miller | |
to conform to OpenBSD man page guidelines. |