Age | Commit message (Collapse) | Author |
|
to do this elsewhere and my previous commit in this area caused
problems on systems with an /etc/crontab file.
|
|
of calling closelog() (with #ifdefs) directly.
|
|
|
|
|
|
Should not really be needed since we do uid checks but it can't hurt.
|
|
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
|
|
implicit inclusion before.
|
|
|
|
|
|
|
|
|
|
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
|
|
bare backslashes.
|
|
stash the st_mtimespec of the original and use that to compare.
|
|
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
|
|
use that instead of e_none when we run out of memory.
|
|
concatenation at compile time rather than run time.
o Some minor cosmetic changes to simplify diffing.
|
|
instead of resetting the signal handler to SIG_DFL and redelivering.
o Use kill(2) instead of raise(3) (which is just a wrapper)
|
|
|
|
|
|
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
|
|
|
|
stdout. This was a pasto/thinko on my part. Problem found by
jean-philippe wan-hoi.
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
Just treat it like a zero value. Also check for errno != EINTR
when select() returns -1.
|
|
|
|
to conform to OpenBSD man page guidelines.
|
|
|
|
|
|
variables and leave the allow/deny files open. Previously, the
allow/deny fd's were leaked during the crontab edit.
|
|
|
|
|
|
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.
|
|
o #ifdef out the -x flag getopt() stanza if not DEBUGGING
|
|
deraadt@ ok
|
|
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
|
|
|
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.
|
|
|
|
o check return value of fscanf()
|
|
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).
|
|
|
|
|
|
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.
|