| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
are actually locale-dependent on OpenBSD, and the programs should better
not be locale-dependent even when compiled on other systems.
millert@ points out that the month and weekday names in the fourth and
fifth columns of crontab(5) could in theory be made locale-dependent,
but we certainly don't want that, and currently, they are only compared
against static const char * arrays in entry.c containing English names.
Patch sent in by Jan Stary <hans at stare dot cz>.
OK millert@
|
| |
|
|
|
|
| |
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
|
| |
|
|
|
| |
stash a struct timespec, not just a time_t. Fixes a bug where cron
could skip re-reading the spool after two consecutive changes.
|
| |
|
|
| |
exec of shell + editor fails.
|
| |
|
|
|
|
|
|
| |
"(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.
|
| |
|
|
|
|
|
|
| |
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@
|
| | |
|
| | |
|
| |
|
|
|
| |
instead of calling fchown() after the fact. Fixes a pledge()
issue. OK semarie@
|
| | |
|
| |
|
|
| |
readability.
|
| | |
|
| |
|
|
|
| |
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@
|
| |
|
|
| |
RealUser has not been filled in yet.
|
| |
|
|
|
| |
Since we got rid of TMPDIR support there's no need to swap gids
when creating or unlinking the temporary file. OK deraadt@
|
| |
|
|
| |
OK jca@ nicm@
|
| |
|
|
| |
move them there.
|
| | |
|
| | |
|
| |
|
|
| |
ok millert
|
| |
|
|
| |
OK deraadt@
|
| |
|
|
| |
OK jung@
|
| | |
|
| |
|
|
| |
head copyright assertion was seperated from the remaining ones.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
help legibility. (unix system calls use 0 for ok, but hundreds of
other projects use 1 to indicate success.) Despite the name, many
system calls (e.g., open) also return not OK values for success.
It also cleans up some weird code like int crontab_fd = OK - 1;
This diff is mechanical in nature. Later I will fix the bugs it reveals.
ok deraadt
|
| |
|
|
|
|
|
|
|
|
| |
I think the level of debug code in cron is excessive for a program
that has reached feature complete. If cron needs to provide more
information to the user about its operational status, I think syslog
would be more appropriate. (The debug flags also disable forking
into the background, so they aren't even that useful for debugging a
live system.)
ok deraadt millert
|
| | |
|
| |
|
|
| |
reasonable level of POSIX compliance.
|
| | |
|
| |
|
|
| |
defines instead of using custom macros. OK deraadt@ gilles@
|
| |
|
|
| |
struct timeval. OK guenther@
|
| |
|
|
|
|
| |
From Lawrence Teo (thanks!)
OK krw@
|
| | |
|
| |
|
|
|
|
|
| |
expected three lines of comments. Factor out the "copy a crontab"
logic and merge it into ignore_comments().
ok miod@
|
| |
|
|
| |
OK miod@ jmc@
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
- move the ignoring of the top few (3) comments into a function of its own.
- ignore these comments for crontab listings.
based on a patch from Slava Semushin
ok ray@ millert@
|
| |
|
|
|
|
| |
where the "no changes" case was not properly detected due to timespec
supporting nanosec resolution but timeval only supporting microsec
resolution. OK deraadt@
|
| |
|
|
|
|
|
|
| |
temporarily restoring default behaviour. This is not 100% ideal.
But this fixes editor handling in mail... bah, it is really unfortunate
that got broken
- refactor the restoration code as well, to make it simpler
ok ray
|
| |
|
|
| |
OK millert.
|
| |
|
|
| |
OK otto, millert, beck, mbalmer, deraadt.
|
| | |
|
| |
|
|
| |
OK millert@
|
| |
|
|
| |
it from lint. Found by cloder@
|
| |
|
|
| |
Based on an idea from Han Boetes.
|
| |
|
|
| |
Noticed by mepch@. OK pedro@ and deraadt@
|
| | |
|
| |
|
|
| |
millert@ ok
|