| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Document the "-q " prefix accepted in the "command" field. | 2016-10-12 | 1 | -2/+13 | |
| | | | | | | | Original patch from Wouter Clarie <wclarie at gmail com>, tweaked in joint work with jca@, OK millert@, OK jca@ on an earlier version. | ||||
| * | Fix fd leak on error. OK jsg@ | 2016-08-30 | 1 | -8/+10 | |
| | | |||||
| * | When caching the mtime of the spool directory and system crontab files, | 2016-01-11 | 5 | -20/+30 | |
| | | | | | | stash a struct timespec, not just a time_t. Fixes a bug where cron could skip re-reading the spool after two consecutive changes. | ||||
| * | Check pipe(2) return value; noticed by deraadt@ | 2015-11-17 | 2 | -5/+10 | |
| | | |||||
| * | Check for setgid() failure before executing editor and warn if | 2015-11-17 | 1 | -4/+8 | |
| | | | | | exec of shell + editor fails. | ||||
| * | Clean up the remaining uses of stderr and perror() and use warn/err | 2015-11-15 | 5 | -108/+128 | |
| | | | | | | | and/or syslog depending on whether stderr is hooked up at the time. Also remove closelog() which is not needed since we are headed for exec. OK guenther@ | ||||
| * | Cleanup from unifdef: set sact.sa_flags to SA_RESTART instead of | 2015-11-14 | 1 | -3/+2 | |
| | | | | | clearing it and then ORin in SA_RESTART. | ||||
| * | Remove log_it() and call syslog(3) directly using the same format: | 2015-11-14 | 8 | -125/+94 | |
| | | | | | | | | | "(username) WHAT (details)". Logs due to normal operation (e.g. crontab operations or running commands) are logged at LOG_INFO like before. Actual errors are logged at LOG_ERR, less important things are logged at LOG_WARNING OR LOG_NOTICE. Also ignore SIGHUP now that there is no log file to reopen. | ||||
| * | new location for cron sockets; ok millert | 2015-11-12 | 1 | -3/+3 | |
| | | |||||
| * | Use absolute paths in pathnames.h. There is no longer a need to | 2015-11-12 | 10 | -285/+110 | |
| | | | | | | | | | chdir(2) to the cron dir and cron(8) now changes to / via daemon(3). We no longer try to create/chmod the spool directories as they should be set correctly at install time. The setegid(crontab) has been moved to open_socket() so it is closer to the chmod(2) call that needs it. OK deraadt@ tedu@ | ||||
| * | Remove SIGNALS section now that the non-syslog code has been removed. | 2015-11-12 | 1 | -16/+2 | |
| | | |||||
| * | Move cron socket to /var/run/cron.sock. Client code will try the old | 2015-11-12 | 4 | -15/+23 | |
| | | | | | | | location if the new one doesn't exist for now. In order to allow the fchown() to succeed, cron now sets its effective gid to crontab. OK jca@ deraadt@ | ||||
| * | Use warn/warnx and err/errx. OK jca@ | 2015-11-11 | 1 | -102/+62 | |
| | | |||||
| * | Niether cron nor crontab need flock permission. | 2015-11-11 | 2 | -4/+4 | |
| | | |||||
| * | Remove obsolete utime() call. It predates the use of a socket to | 2015-11-11 | 1 | -4/+1 | |
| | | | | | prod cron into checking the spool dir. | ||||
| * | Fix spool dir mode check to avoid extraneous chmod() calls. | 2015-11-11 | 1 | -3/+3 | |
| | | |||||
| * | For "crontab -u user -e" change the euid for the mkstemp() call | 2015-11-11 | 1 | -9/+18 | |
| | | | | | | instead of calling fchown() after the fact. Fixes a pledge() issue. OK semarie@ | ||||
| * | exit on pledge failure, oops | 2015-11-11 | 1 | -2/+4 | |
| | | |||||
| * | Remove unused xpid argument to log_it(). | 2015-11-09 | 8 | -65/+63 | |
| | | |||||
| * | Update CRONDIR comment to reality. | 2015-11-09 | 1 | -4/+5 | |
| | | |||||
| * | Rename AT_DIR -> AT_SPOOL and SPOOL_DIR -> CRON_SPOOL to improve | 2015-11-09 | 7 | -57/+57 | |
| | | | | | readability. | ||||
| * | Use fstatat() when checking the files in the at queue so we | 2015-11-09 | 1 | -40/+27 | |
| | | | | | don't need to chdir to the queue dir. OK guenther@ | ||||
| * | queue(3) instead of homegrown queues and lists. This also fixes | 2015-11-09 | 7 | -170/+130 | |
| | | | | | some potential memory leaks in error paths. OK guenther@ | ||||
| * | Quiet silly clang analyzer warning in calloc() usage. | 2015-11-08 | 1 | -2/+2 | |
| | | |||||
| * | Use __progname instead of the homegrown ProgramName. | 2015-11-06 | 5 | -47/+35 | |
| | | |||||
| * | Change cron from including all headers in every file to only including | 2015-11-04 | 17 | -89/+251 | |
| | | | | | | what each .c file needs. I have not removed cron.h since it will be used in a future clean up of the cron's .h files. OK nicm@ | ||||
| * | Remove unused LogFD variable | 2015-11-04 | 1 | -6/+1 | |
| | | |||||
| * | Change some globals from extern to static when they are not used | 2015-11-04 | 6 | -93/+38 | |
| | | | | | | outside their respective .c files. Also remove some unused defines. OK jung@ | ||||
| * | If pledge(2) fails use perror instead of log_it(RealUser, ...) since | 2015-11-03 | 1 | -3/+3 | |
| | | | | | RealUser has not been filled in yet. | ||||
| * | It is only necessary to swap the effective gid when reading a file. | 2015-11-03 | 1 | -33/+1 | |
| | | | | | | Since we got rid of TMPDIR support there's no need to swap gids when creating or unlinking the temporary file. OK deraadt@ | ||||
| * | Use send(MSG_NOSIGNAL) instead of mucking with the disposition of SIGPIPE | 2015-11-03 | 1 | -4/+2 | |
| | | | | | ok millert@ | ||||
| * | Use setegid() directly instead of swap_gids() / swap_gids_back(). | 2015-11-02 | 1 | -33/+25 | |
| | | | | | OK jca@ nicm@ | ||||
| * | Split client-only (at, crontab) functions out of misc.c and into | 2015-10-31 | 4 | -177/+222 | |
| | | | | | | client.c. Move truly common functions into common.c. This avoids dead code in the at and crontab commands. | ||||
| * | open_socket() is only used by cron proper so move to cron.c | 2015-10-31 | 3 | -60/+60 | |
| | | |||||
| * | swap_gids and swap_gids_back are only used by crontab.c so | 2015-10-31 | 3 | -16/+15 | |
| | | | | | move them there. | ||||
| * | Also need exec to run the editor of course. | 2015-10-29 | 1 | -2/+2 | |
| | | |||||
| * | crontab needs "proc" for fork(2) | 2015-10-29 | 1 | -2/+2 | |
| | | |||||
| * | Use stravis(3) instead of a homegrown vis-like function. | 2015-10-29 | 3 | -61/+9 | |
| | | | | | OK nicm@ | ||||
| * | remove unused variables | 2015-10-29 | 2 | -4/+3 | |
| | | |||||
| * | Convert env_get() into env_find() similar to __findenv() in libc. | 2015-10-29 | 3 | -67/+51 | |
| | | | | | | Use env_find() in both env_get() and env_set() to find a var in envp. Remove now-unused strcmp_until() function. | ||||
| * | Remove useless FACILITY define and use LOG_CRON directly. | 2015-10-29 | 1 | -12/+2 | |
| | | | | | Remove unneeded limits.h include. | ||||
| * | pledge | 2015-10-28 | 2 | -2/+12 | |
| | | | | | ok millert | ||||
| * | Remove TMPDIR support, it is not really useful in crontab. | 2015-10-26 | 2 | -18/+6 | |
| | | | | | OK deraadt@ | ||||
| * | Use SOCK_NONBLOCK and SOCK_CLOEXEC instead of fcntl() calls. | 2015-10-26 | 2 | -19/+6 | |
| | | | | | OK guenther@ | ||||
| * | Remove some useless defines and the set_cron_uid() function. | 2015-10-26 | 6 | -29/+14 | |
| | | | | | OK jung@ | ||||
| * | Remove PIDDIR and PIDFILE missed in previous commit. | 2015-10-25 | 1 | -12/+1 | |
| | | |||||
| * | Remove cron.pid support. We still want to avoid multiple crons | 2015-10-25 | 4 | -128/+18 | |
| | | | | | | running so verify that if the cron socket exists nothing is listening on it. OK tedu@ | ||||
| * | remove some more ifdef maziness | 2015-10-23 | 5 | -71/+5 | |
| | | |||||
| * | clear out some more legacy code and whatnot | 2015-10-06 | 12 | -201/+12 | |
| | | |||||
| * | remove stale comment. there is no need to avoid side effects from a "list" | 2015-10-04 | 1 | -4/+2 | |
| | | | | | command, because this is not the ftp daemon | ||||
