Commit Graph

22 Commits

Author SHA1 Message Date
christos
27ed5dfb1a - exit with ERROR_EXIT consistently
- don't use warnx() for things that set errno
- check result of setlogin()
- don't call setlogin() without calling setsid()
  should fix kernel warnings like:
	cron (pid NNNNN) changing logname from root to USER
	cron (pid MMMMM) changing logname from USER to root
2011-07-17 01:16:46 +00:00
christos
bd253b6939 calling setlogin() once is good enough. 2011-07-17 01:14:25 +00:00
tron
c4f7aae542 Use setenv(3) instead of putenv(3) because the later doesn't accept
string constants anymore.
2010-10-02 12:22:20 +00:00
christos
6533f925b7 Document the format of the system crontab file, since cron(8) says that we do. 2010-07-15 22:18:20 +00:00
christos
4d77e7cf65 PR/43623: Takahiro Kambe: Allow /etc/crontab processing if it is not writable,
don't insist that it is mode 0600.
2010-07-15 20:04:14 +00:00
christos
7035a6c5ea remove bad cast. 2010-07-15 20:03:28 +00:00
christos
dbee6f29d8 PR bin/43591: Jeremy Reed: make sure that the default path is always set. 2010-07-10 21:42:29 +00:00
christos
9d32a81030 rename the allow and deny files to match the documentation. 2010-05-19 12:50:49 +00:00
christos
71a5eeb0d1 - The new cron keeps time internally as localtime. Revert to previous behavior
of keeping UTC, and handle timezones the way we handled them before (CRON_TZ).
  The old behavior can be selected with defining CRON_LOCALTIME.
- Provide functions to pretty-print crontab entries.
2010-05-18 21:49:51 +00:00
christos
e8894454ad Forgot to commit this:
Bring back the default to allow any user to install crontabs.
2010-05-18 21:47:43 +00:00
joerg
26593da519 Fix .At argument. 2010-05-13 22:35:57 +00:00
wiz
6f0c1d2e97 Remove trailing whitespace; new sentence, new line; sort sections;
standardize SYNOPSIS; use serial comma.
2010-05-08 11:55:01 +00:00
christos
979605cffd specify bindir 2010-05-07 21:54:07 +00:00
christos
b8f08142d6 change to mandoc 2010-05-07 20:43:40 +00:00
christos
dcb0cbe948 bump crontab limit to 256K per the old manual page. 2010-05-07 20:43:27 +00:00
christos
6611a4be6f remove the +1 second. Otherwise jobs that are supposed to run at 10:00:00,
run at 10:00:01 which is tolerable because cron has a 1 minute granularity,
but confusing. This restores the old behavior with the new timing logic.
2010-05-07 17:12:00 +00:00
christos
c3f423a27c for posterity. 2010-05-06 23:19:56 +00:00
christos
32d0172f96 remember to restore the original timezone. 2010-05-06 22:38:14 +00:00
christos
c809afbc3f - change times to time_t
- use the correct time in job_add
- bring back CRON_TZ
2010-05-06 21:50:16 +00:00
christos
1f7f15c404 Add build glue. 2010-05-06 18:58:45 +00:00
christos
032a439890 apply our changes. 2010-05-06 18:53:17 +00:00
christos
0061c6a57d import cron 4.1 2010-05-06 18:50:28 +00:00