Age | Commit message (Collapse) | Author | |
---|---|---|---|
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. | |||
2002-05-09 | prototype open_socket() | Todd C. Miller | |
2002-05-09 | nuke unused variable | Todd C. Miller | |
2002-05-09 | allowed() is only called once so there is no need to use static | Todd C. Miller | |
variables and leave the allow/deny files open. Previously, the allow/deny fd's were leaked during the crontab edit. | |||
2002-05-09 | Missing piece from last commit. | Todd C. Miller | |
2002-05-09 | Better error handling for in_file(); from Owl | Todd C. Miller | |
2002-05-09 | crontab is no longer setuid root, it is now setgid crontab. | Todd C. Miller | |
These changes were modelled after the Owl version of vixie-cron, but developed independently. Our crontab used to send cron SIGUSR1 to tell cron to reread the spool dir. Now that crontab is not setuid root this doesn't work. Instead, crontab pokes cron via a Unix domain socket located in the tabs dir. Please note, after these changes, the owner on user crontab files will have to be changed manually from root to the uid of the corresponding user for crontab to be usable. cron itself will accept tab files owned by either root or the user. Also, any /var/cron/{allow,deny} files must be readable by group crontab. | |||
2002-05-08 | o Use proper #defines; It is HAVE_*, not HAS_* | Todd C. Miller | |
o #ifdef out the -x flag getopt() stanza if not DEBUGGING | |||
2002-02-19 | Fix gethostname() usage. | Mike Pechkin | |
deraadt@ ok | |||
2002-02-16 | Part one of userland __P removal. Done with a simple regexp with some minor ↵ | Todd C. Miller | |
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. | |||
2002-01-09 | Kill volatile now that jongjmp is history. | Todd C. Miller | |
2001-12-20 | Cause crontab to send SIGUSR1 when a user's crontab file has changed. | Todd C. Miller | |
In cron, this interrupts the sleep() in cron_sleep() and causes cron to check to see what signal woke it up and act appropriately. This makes crontab changes take effect more or immediately. | |||
2001-12-13 | Mention that cron should be started late in the rc file and why. | Todd C. Miller | |
2001-12-12 | o pids should be pid_t, not int | Todd C. Miller | |
o check return value of fscanf() | |||
2001-12-11 | If we receive a signal during the sleep(), run signal handlers as | Todd C. Miller | |
needed and then go back to sleep. This fixes the issue where processes run by cron could hang around as zombies for a minute (ie: until we were done sleeping). | |||
2001-12-07 | do not call abort(), it is tasteless | Theo de Raadt | |
2001-11-17 | save errno in signal handler | Theo de Raadt | |
2001-10-24 | When becoming a daemon, dup stdin, stdout, and stderr to /dev/null | Todd C. Miller | |
Change an unsafe vfork() to fork() Fix dup2() usage--must check for oldd == newd case and no need to close oldd Fixes annoying messages from sendmail about stdout being closed. | |||
2001-10-01 | In "r" mode always dup2(STDOUT_FILENO, STDERR_FILENO); from ftpd/popen.c | Todd C. Miller | |
Otherwise, sendmail may complain about the lack of stderr. | |||
2001-08-22 | More manpage mania. Crontab entries are comprised of a certain number | Hugh Graham | |
of fixed fields (the time spec, etc) and a command which may itself be one or more fields long. Make this clear. | |||
2001-08-22 | o System crontab has seven (7) fields | Heikki Korpela | |
o User crontab has six (6) fields o Closes PR 2021; thanks jamesez@cerberus.jimz.net o Okay millert@ | |||
2001-08-19 | Better file change detection: | Todd C. Miller | |
o when copying to temp file set utimes on temp file equal to original o use st_mtimespec instead of st_mtime for better granularity | |||
2001-08-11 | If waitpid() returns -1, check for EINTR | Todd C. Miller | |
2001-08-02 | o) .Sh AUTHOR -> .Sh AUTHORS; | Mike Pechkin | |
o) .Sh EXAMPLE -> .Sh EXAMPLES; o) Delete .Sh OPTIONS. Text moved to .Sh DESCRIPTION; millert@ ok | |||
2001-07-13 | flags set in signal handlers should be volatile sig_atomic_t | Todd C. Miller | |
2001-07-09 | correct type on last arg to execl(); nordin@cse.ogi.edu | Theo de Raadt | |
2001-06-19 | o Don't talk about /bin/mail vs. sendmail since we always build with | Todd C. Miller | |
sendmail support. o Remove misleading info in STANDARDS about the syntax being different from previous Vixie Cron versions. The flags have been this way for all versions of cron we have shipped with. | |||
2001-06-03 | Move login_cap stuff before pipe duping | Todd C. Miller | |
Move the stderr dup2 to be with stdout dup2 as before since otherwise sendmail seems to get unhappy. | |||
2001-06-02 | Version derived from new ftpd code which has an updated UCB license. | Todd C. Miller | |
2001-05-29 | build with BSD auth support | Todd C. Miller | |
2001-02-21 | Add back code in find_jobs() that got dropped in cron merge. | Todd C. Miller | |
2001-02-20 | Turn get_gmtoff into a macro for OSes with tm_gmtoff (like OpenBSD). | Todd C. Miller | |
Save the GMT offset in a global so cron_sleep can use it. This means the offset can only change in set_time() which is really what we want. | |||
2001-02-19 | Normalize the time in minutes to GMT so we can really catch DST changes | Todd C. Miller | |
(since time() does not change during a DST switch). This makes cron correctly detect DST changes. It does not fix the problem of wildcard jobs running multiple times. Also, don't rely on tm_gmtoff since that is non-standard (but use it when we have it). | |||
2001-02-19 | We handle the clock going backwards. | Todd C. Miller | |
2001-02-18 | Don't run sendmail with the -or0s arg since it causes sendmail to | Todd C. Miller | |
drop root privileges when specified on the command line. | |||
2001-02-18 | NULL vs '\0' | Todd C. Miller | |
2001-02-18 | Define CAPITALIZE_FOR_PS so children are capitalized in ps (like before). | Todd C. Miller | |
2001-02-18 | Update to ISC cron 4.0b1 + our patches. This is now under a BSD license. | Todd C. Miller | |
I also fixed the signal handlers while I was at it. | |||
2001-02-12 | Define MAX_UNAME in terms of _PW_NAME_LEN. Potential problem found by | Todd C. Miller | |
achter05@IE.HVA.NL | |||
2001-01-19 | mark remaining signal races which are difficult to fix | Theo de Raadt | |
2000-09-15 | check return value for setenv(3) for failure, and deal appropriately | Theo de Raadt | |
2000-08-21 | snprintf sprinkles; solar@false.com & I | Theo de Raadt | |