321389 |
23-Jul-2017 |
ngie |
MFC r321240:
cron(8) manpage updates
- Document /etc/cron.d and /usr/local/etc/cron.d under FILES. - Reword documentation for -n: add appropriate soft-stop and remove contraction to appease igor. |
321244 |
19-Jul-2017 |
ngie |
MFC r269550: r269550 (by peter):
Check gethostname(2) return code - but even if it succeeds it may not null terminate.
Temporarily use "From: $user@$hostname" rather than "From: $user". The latter exposes incompatible behavior if using dma(8). sendmail(8) (and other alternatives) canonify either form on submission (even if masquerading), but dma will leak a non-compliant address to the internet. |
321243 |
19-Jul-2017 |
ngie |
MFC r310329: r310329 (by cem):
Add a 'force' option for non-interactive crontab removal
Add a '-f' option to force crontab '-r' to be non-interactive. |
321242 |
19-Jul-2017 |
ngie |
MFC r308139,r308157,r308158:
r308139 (by bapt):
cron(8): add support for /etc/cron.d and /usr/local/etc/cron.d
For automation tools it is way easier to maintain files in directories rather than modifying /etc/crontab.
The files in those directories are in the same format as /etc/crontab
Relnotes: yes
r308157 (by bapt):
Fix typo in cron(8) date
r308158 (by bapt):
Allow symlinks to be followed in cron.d directories and fix detection of regular files on NFS |
321237 |
19-Jul-2017 |
ngie |
MFC r304570,r321235:
r304570 (by trasz):
Add the "-n" flag to cron(8), to prevent it from daemonizing. This makes it possible to use it with external supervisors. The "-n" flag name is compatible with Linux, NetBSD, and OpenBSD.
r321235:
Fix trivial whitespace bug introduced in usage message changes for -n support (r304570). |
320229 |
22-Jun-2017 |
ngie |
Revert r320222,r320223,r320224
The committed changes (reverted after this commit) break POLA on a stable branch.
Requested by: jhb |
320223 |
22-Jun-2017 |
ngie |
MFC r308158: r308158 (by bapt):
Allow symlinks to be followed in cron.d directories and fix detection of regular files on NFS |
320222 |
22-Jun-2017 |
ngie |
MFC r308139,r308157,r308160,r316818,r318250,r318443:
r308139 (by bapt):
cron(8): add support for /etc/cron.d and /usr/local/etc/cron.d
For automation tools it is way easier to maintain files in directories rather than modifying /etc/crontab.
The files in those directories are in the same format as /etc/crontab
Relnotes: yes
r308157 (by bapt):
Fix typo in cron(8) date
r308160 (by bapt):
syslogd(8): add an 'include' keyword
All the '.conf' files not beginning with a '.' contained int he directory following the keyword will be included.
This keyword can only be used in the first level configuration files.
Modify the default syslogd.conf to 'include' /etc/syslog.d and /usr/local/etc/syslog.d
It simplify a lot handling of syslog from automation tools.
Relnotes: yes
r316818:
Conditionally install /etc/pam.d/ftp* and /etc/pam.d/telnetd
/etc/pam.d/ftp* should be installed with MK_FTP != no and /etc/pam.d/telnetd should be installed when MK_TELNET != no.
r318250:
Handle the logfiles in newsyslog and syslogd conditionally, based on src.conf(5) knobs
This will allow consumers of FreeBSD to use the unmodified configuration files out of the box more than previously.
Both newsyslog.conf and syslog.conf: - /var/log/lpd-errs (MK_LPR != no) - /var/log/ppp.log (MK_PPP != no) - /var/log/xferlog (MK_FTP != no)
newsyslog.conf: - /var/log/amd.log (MK_AMD != no) - /var/log/pflog (MK_PF != no) - /var/log/sendmail.st (MK_SENDMAIL != no)
r318443:
Conditionally handle the crontab entry for atrun(8)
The default crontab prior to this commit assumes atrun(8) is always present, which isn't true if MK_AT == no. Move atrun(8) execution from /etc/crontab to /etc/cron.d/at, and base /etc/cron.d/at's installation on MK_AT. cron(8) will detect /etc/cron.d/at's presence when the configuration is loaded and run atrun every 5 minutes like it would prior to this commit.
SHELL and PATH are duplicated between /etc/crontab and /etc/cron.d/at because atrun(8) executes programs, which may rely on environment set in the current default /etc/crontab.
Noted by: bdrewery (in an internal review) Relnotes: yes (may need to add environmental modifications to /etc/cron.d/at) |
305424 |
05-Sep-2016 |
emaste |
MFC r305269: cron: use existing maximum username constant MAXLOGNAME
Previously cron had its own maximum username length limit, which was smaller than the system's MAXLOGNAME. This could lead to crontab -u updating the wrong user's crontab (if the name was truncated, and matched another user).
PR: 212305 Reported by: Andrii Kuzik |
296463 |
07-Mar-2016 |
pfg |
MFC r295672: crontab: ftruncate() with ftello() instead of ftell().
Obtained from: OpenBSD (CVS rev. 1.47) |
296460 |
07-Mar-2016 |
pfg |
MFC r295671: cron: use (char *)NULL instead of (char *)0 in execle.
Obtained from: OpenBSD (CVS Rev 1.25) |
293132 |
04-Jan-2016 |
pfg |
MFC r292605, r292606, r292607, r292608:
cron: bring some fixes for Coverity reports and other issues.
crontab: replace malloc + bzero with calloc crontab: properly free an entry cron: Check the return value of pipe(2)
CID: 271773, 1009830, |
261231 |
28-Jan-2014 |
ache |
MFC: r261146
Bad timespec_subtract() calculations produce negative tv_nsec on i386 which cause EINVAL returned from nanosleep() which cause loop in cron_sleep() and making all cron jobs to start about 30 seconds earlier (which cause f.e. logfiles rotation by newsyslog delayed by 1 hour).
Use simple and proved calculations from kernel's timespecsub() instead. |
256281 |
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
242101 |
25-Oct-2012 |
sobomax |
Second attempt to add @every_second keyword support. Due to multiple requests, default to the previous 60-seconds scheduling method unless there is any @every_second entries to conserve CPU cycles and power.
This change also improves scheduling in the default mode by running as close to the beginning of the minnute as possible by replacing sleep(3) with nanosleep(2). Previously, the tasks would run anywhere within the first second of the minute and that offset drifted back and forth each time cron(8) was engaged.
MFC after: 1 month
|
241672 |
18-Oct-2012 |
sobomax |
Fully backout latest changes.
Pointy hat to: sobomax
|
241651 |
17-Oct-2012 |
sobomax |
Remove harmless, but superfluous local change that creeped in along with the r241649.
|
241649 |
17-Oct-2012 |
sobomax |
Revert latest changes to cron, until better version is worked out (I hope).
Requested by: few
|
241625 |
17-Oct-2012 |
sobomax |
o Use nanosleep(2) to sleep exact amount of time till the next second, not multiple of 1 second, which results in actual time to drift back and forth every run within 1 second of the actual action has been set for.
Suggested by: Ian Lepore
o Schedule the first run in 1 second after starting up, not on the boundary of the next minute, which results in the every_second jobs not being run.
|
241618 |
16-Oct-2012 |
sobomax |
Properly handle non-keyword case by setting e->second to 0.
|
241576 |
15-Oct-2012 |
sobomax |
Add per-second scheduling into the cron(8). Right now it's only available via the new @every_second shortcut. ENOTIME to implement crontab(5) format extensions to allow more flexible scheduling.
In order to address some concerns expressed by Terry Lambert while discussing the topic few years ago, about per-second cron possibly causing some bad effects on /etc/crontab by stat()ing it every second instead of every minute now (i.e. atime update), only check that database needs to be reloaded on every 60-th loop run. This should be close enough to the current behaviour.
Add "@every_minute" shortcut while I am here.
MFC after: 1 month
|
241125 |
02-Oct-2012 |
pluknet |
Fix build with LOG_FILE undefined and DEBUGGING disabled.
|
241124 |
02-Oct-2012 |
pluknet |
Fix build with DEBUGGING disabled.
|
239991 |
01-Sep-2012 |
ed |
Rework all non-contributed files that use `struct timezone'.
This structure is not part of POSIX. According to POSIX, gettimeofday() has the following prototype:
int gettimeofday(struct timeval *restrict tp, void *restrict tzp);
Also, POSIX states that gettimeofday() shall return 0 (as long as tzp is not used). Remove dead error handling code. Also use NULL for a nul-pointer instead of integer 0.
While there, change all pieces of code that only use tv_sec to use time(3), as this provides less overhead.
|
238024 |
02-Jul-2012 |
jhb |
Add a one second sleep before touching the spool directory. If the touch occurs in the same second as the earlier operations to create the temporary file and the cron(8) daemon is rescans the spool directory during that second, then the daemon may miss a cron edit and not properly update its internal database.
MFC after: 1 month
|
234775 |
28-Apr-2012 |
gjb |
As cron(8) is started with '-s' by default, timezones that observe DST should not need to worry about scheduling jobs when the DST time changes.
Rather than removing the BUGS section in crontab(5) regarding this, note that disabling '-s' may still cause jobs to be executed twice or not at all.
PR: 166318 Submitted by: Florian k Unglaub (f.unglaub%googlemail!com) MFC After: 1 week
|
232202 |
27-Feb-2012 |
delphij |
Drop setuid status while doing file operations to prevent potential information leak. This changeset is intended to be a minimal one to make backports easier.
Reviewed by: kevlo, remko MFC after: 1 week
|
230655 |
28-Jan-2012 |
scf |
Since April 2, 2006, Indiana has observed DST.
MFC after: 5 days
|
228990 |
30-Dec-2011 |
uqs |
Spelling fixes for usr.sbin/
|
227981 |
25-Nov-2011 |
wblock |
Point out that @reboot runs at every cron startup, not just system startup.
Discussed on: hackers@
Approved by: gjb (mentor) MFC after: 1 week
|
208054 |
14-May-2010 |
brueffer |
List /var/cron/tabs in FILES and add descriptions for the other entries.
PR: 145912 Submitted by: Julian H. Stacey <jhs@berklix.com> Obtained from: OpenBSD MFC after: 1 week
|
201390 |
02-Jan-2010 |
ed |
The last big commit: let usr.sbin/ use WARNS=6 by default.
|
199804 |
25-Nov-2009 |
attilio |
Avoid sshd, cron, syslogd and inetd to be killed under high-pressure swap environments. Please note that this can't be done while such processes run in jails.
Note: in future it would be interesting to find a way to do that selectively for any desired proccess (choosen by user himself), probabilly via a ptrace interface or whatever.
Obtained from: Sandvine Incorporated Reviewed by: emaste, arch@ Sponsored by: Sandvine Incorporated MFC: 1 month
|
185525 |
01-Dec-2008 |
skv |
Fix typo.
Approved by: ru
|
185043 |
18-Nov-2008 |
matteo |
remove a pointless prototype and static-fy the corresponding function
MFC after: 3 days
|
185042 |
18-Nov-2008 |
matteo |
use WARNS?= instead of WARNS=
MFC after: 3 days
|
185041 |
18-Nov-2008 |
matteo |
Be more precise and use sizeof(tn) Pointed out by: glewis@
MFC after: 3 days
|
185040 |
18-Nov-2008 |
matteo |
Use WARNS?= instead of WARNS=
MFC after: 3 days
|
184809 |
10-Nov-2008 |
matteo |
Make usr.sbin/cron/crontab and usr.sbin/cron/lib WARNS=3 clean
Tested with: make universe
MFC after: 3 days
|
184784 |
09-Nov-2008 |
matteo |
Revert to previous revision. I should not commit anything at 3.50 AM. In addition to danfe's comments, I got others. I'll work on a better version of the patch.
|
184780 |
09-Nov-2008 |
matteo |
Don't leave files in /var/cront/tabs when interrupted
PR: 17363 MFC after: 3 days
|
184779 |
09-Nov-2008 |
matteo |
Be paranoid and use snprintf
PR: bin/122137 Submitted by: Steven Kreuzer <skreuzer@exit2shell.com> MFC after: 3 days
|
184706 |
06-Nov-2008 |
matteo |
Be paranoid and zero out passwd
PR: 122070 Submitted by: Steven Kreuzer <skreuzer@exit2shell.com> Reminded by: gnn@ MFC after: 3 days
|
181115 |
01-Aug-2008 |
marck |
Fix empty mailto (-m "") handling: somehow I missed all checks but the first, hence output would be written to the wrong filehandle.
Submitted by: reg Approved by: yar (implicit) MFC after: ASAP Pointy hat to: marck
|
180096 |
29-Jun-2008 |
marck |
Add -m option to cron(8), overriding default mail recipient for cron mails, unless explicitly provided by MAILTO= line in crontab. This feature can be useful in massive hosting environment, where most users do not care about autogenerated mails.
Setting recipient to null string disables default mails at all.
Approved by: yar MFC after: 4 weeks
|
173412 |
07-Nov-2007 |
kevlo |
Cleanup of userland __P use
|
172402 |
01-Oct-2007 |
ru |
Fixed static linkage (build with -DNO_SHARED).
Approved by: re (kensmith)
|
170890 |
17-Jun-2007 |
yar |
Add PAM support to cron(8). Now cron(8) will skip commands scheduled by unavailable accounts, e.g., those locked, expired, not allowed in at the moment by nologin(5), or whatever, depending on cron's pam.conf(5). This applies to personal crontabs only, /etc/crontab is unaffected.
In other words, now the account management policy will apply to commands scheduled by users via crontab(1) so that a user can no longer use cron(8) to set up a delayed backdoor and run commands during periods when the admin doesn't want him to.
The PAM check is done just before running a command, not when loading a crontab, because accounts can get locked, expired, and re-enabled any time with no changes to their crontabs. E.g., imagine that you provide a system with payed access, or better a cluster of such systems with centralized account management via PAM. When a user pays for some days of access, you set his expire field respectively. If the account expires before its owner pays more, its crontab commands won't run until the next payment is made. Then it'll be enough to set the expire field in future for the commands to run again. And so on.
Document this change in the cron(8) manpage, which includes adding a FILES section and touching the document date.
X-Security: should benefit as users have access to cron(8) by default
|
167328 |
08-Mar-2007 |
will |
Fix a bug where HOME was not allowed to be overridden by an user's crontab as crontab(5) states it can be. This is supported by all vixie-cron derived implementations; not sure why FreeBSD was any different.
PR: bin/106442 MFC after: 2 weeks
|
162666 |
26-Sep-2006 |
brian |
Behave as documented when reading fields saying "X/Y" where X != * rather than mis-parsing them as "X".
MFC after: 1 day
|
161964 |
03-Sep-2006 |
ru |
Use a #define to refer to /etc/crontab.
|
160521 |
20-Jul-2006 |
stefanf |
Don't use "implicit int". Move the opening { of the functions to the next line while there.
|
159527 |
11-Jun-2006 |
maxim |
o Finally learn how to spell "privileges".
English trainer: ceri
|
159523 |
11-Jun-2006 |
maxim |
o Spell "privledges" correctly. Re-style comment.
|
159142 |
01-Jun-2006 |
maxim |
o Better be safe than sorry: check return code from setuid(2), setgid(2), setlogin(2) and initgroups(3). In theory they could fail for root with some third party mac(4) policies.
Submitted by: Kostik Belousov MFC after: 1 month
|
154166 |
10-Jan-2006 |
brooks |
/etc/crontab is similar enough to parse as correct if you run "crontab /etc/crontab", but not the same format due to the who field. Add some limited anti-foot-shooting support and refuse to load /etc/crontab as someone's crontab. Users wishing shoot their foot in this manner may copy /etc/crontab elsewhere. :)
MFC After: 1 week
|
150214 |
16-Sep-2005 |
pjd |
Pidfiles should be created with permission preventing users from opening them for reading. When user can open file for reading, he can also flock(2) it, which can lead to confusions.
Pointed out by: green
|
149430 |
24-Aug-2005 |
pjd |
Use pidfile(3) in cron(8).
Note, that when cron(8) cannot create pidfile, it'll exit. I didn't changed this behaviour, but its better to ignore errors other than EEXIST, so daemon can be started on systems where /var/ file system doesn't support locking (like NFS without rpc.lockd(8)).
|
148595 |
31-Jul-2005 |
brueffer |
Mention the default value of PATH and that it may be overridden.
Submitted by: Roman Divacky MFC after: 3 days
|
147225 |
10-Jun-2005 |
des |
Remove kludges intended to support src trees with partial obj trees.
Discussed with: ru
|
141915 |
14-Feb-2005 |
delphij |
Fix parsing of '0' and non-alphanumerics in steps. Previously, an entry having stepping value of zero can cause crontab to hang there, and if the main crontab is being changed in this way, then cron(8) will keep spining.
Obtained from: OpenBSD [src/usr.sbin/cron/entry.c,v 1.17] PR: 68683 (my own, but forgot to commit it...) MFC After: 1 week
|
141851 |
13-Feb-2005 |
ru |
Expand contractions.
|
141846 |
13-Feb-2005 |
ru |
Expand *n't contractions.
|
141571 |
09-Feb-2005 |
stefanf |
Properly initialise the variable `deny'.
|
140442 |
18-Jan-2005 |
ru |
Sort sections.
|
137164 |
03-Nov-2004 |
ru |
Introduce the PRECIOUSPROG knob in bsd.prog.mk, similar to PRECIOUSLIB from bsd.lib.mk. The side effect of this is making installing the world under jail(8) possible by using another knob, NOFSCHG.
Reviewed by: oliver
|
136910 |
24-Oct-2004 |
ru |
For variables that are only checked with defined(), don't provide any fake value.
|
135242 |
14-Sep-2004 |
dds |
Ensure that edits that do not span a clock tick are not lost.
PR: bin/22612 MT5: 4 weeks MT4: 2 weeks
|
135174 |
13-Sep-2004 |
dds |
Refactoring: move two similar code blocks into a seprate function.
|
135165 |
13-Sep-2004 |
dds |
Fix for the following behavior: $ crontab -e [Add an entry with an error in the crontab file.] crontab: errors in crontab file, can't install Do you want to retry the same edit? yes [Exit the editor without any changes.] crontab: no changes made to crontab [Entry is lost.]
Now crontab will loop until the error is fixed, or the user answers no.
|
131500 |
02-Jul-2004 |
ru |
Mechanically kill hard sentence breaks.
|
130089 |
04-Jun-2004 |
ru |
Trim whitespace at EOL.
|
130087 |
04-Jun-2004 |
ru |
Markup nits.
|
129280 |
16-May-2004 |
yar |
Add two new options to cron(8), -J and -j. They allow to specify the maximum amount of time jitter for root and other users, respectively. Before starting a job, cron(8) will sleep a random number of seconds, from 0 to the amount specified. This can help to smooth down load spikes when a lot of jobs are to start at the beginning of a particular minute (e.g., the first minute of an hour.)
PR: bin/66474 Submitted by: Dmitry Morozovsky <marck <@> rinet.ru>
|
126613 |
04-Mar-2004 |
trhodes |
Eliminate hard sentence breaks. General markup fixes (use the .Dq macro).
|
124444 |
12-Jan-2004 |
trhodes |
Discuss the 'MAILTO' option.
PR: 58783 Submitted by: Marc Silver <marcs@draenor.org>
|
121465 |
24-Oct-2003 |
harti |
Mention the fact that our crontab is not fully POSIX.2 conform, because it doesn't allow the dangerous variant of calling it without any argument.
|
116590 |
19-Jun-2003 |
silby |
Fix a coredump that would occur when fdopen was unable to return a valid fd.
PR: 49096 Submitted by: demon MFC after: 3 days
|
110638 |
10-Feb-2003 |
thomas |
Allow inner whitespace in the right-hand side of an environment variable assignment even if it is not quoted (as advertised by the man page). This fixes a regression wrt RELENG_4 introduced in rev. 1.11.
Problem noted and patch tested by: CHOI Junho <cjh@kr.FreeBSD.org> Reviewed by: roberto
|
108317 |
27-Dec-2002 |
schweikh |
english(4) police.
|
104326 |
01-Oct-2002 |
dd |
Actually use the exitstatus value that we maintain.
PR: 43562 Submitted by: Marc Olzheim <marcolz@ilse.nl>
|
101293 |
04-Aug-2002 |
tjr |
Never allow a user to use crontab if opening /var/cron/{allow,deny} fails for any reason other than ENOENT (think resource limits). Close allow and deny files before allowed() returns to stop the user's EDITOR being able to read them.
Obtained from: OpenBSD (partially)
|
99968 |
14-Jul-2002 |
charnier |
The .Nm utility
|
97165 |
23-May-2002 |
roberto |
load_env(), the function that attempts to parse a crontab line as an environment variable assignment, is broken and not conformant to its description in the manual page.
I think it is worthwhile to have that fix in 4.6.
PR: bin/38374 Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org> MFC after: 2 days
|
96514 |
13-May-2002 |
ru |
Mark all internal libraries with INTERNALLIB.
|
95127 |
20-Apr-2002 |
charnier |
Use `The .Nm utility'
|
94389 |
10-Apr-2002 |
dwmalone |
Only remove the '\n' at the end of a line if there is one. I missed this as part of the fix to the PR below.
PR: 31265 Submitted by: Matthew D. Fuller <fullermd@over-yonder.net> MFC after: 1 week
|
93062 |
24-Mar-2002 |
keramida |
Be a bit more verbose. "modtime" means nothing. "modification time" is a lot better.
MFC after: 3 days
|
93061 |
24-Mar-2002 |
keramida |
Grammar fix: "When at least one of the fields .. matches ...".
MFC after: 3 days
|
92501 |
17-Mar-2002 |
dwmalone |
Describe the format of the allow and deny files. This is more-or-less the patch Matthew submitted, but I broke the lines in a more FreeBSD way and made one small wording change.
PR: 31265 Submitted by: Matthew D. Fuller <fullermd@over-yonder.net> MFC after: 3 weeks
|
90276 |
06-Feb-2002 |
bbraun |
Make cron actually build without defining LOGIN_CAP.
Reviewed by: jkh
|
89423 |
16-Jan-2002 |
ru |
Document the -x debugging option.
PR: docs/33784 Submitted by: Mike Makonnen <mike_makonnen@yahoo.com>
|
81778 |
16-Aug-2001 |
mikeh |
Fix the @monthly and @weekly shortcuts so that they actually run monthly and weekly, respectively. Also fix the @yearly shortcut so that it doesn't execute daily during January. OpenBSD and NetBSD also appear to have this bug.
PR: bin/21152
|
81622 |
14-Aug-2001 |
ru |
mdoc(7) police: s/BSD/.Bx/ where appropriate.
|
81458 |
10-Aug-2001 |
ru |
mdoc(7) police: fixed the "new sentence" bogons.
|
80312 |
25-Jul-2001 |
billf |
fix misspelling introduced in rev 1.14 (sames as -> same as)
|
80030 |
20-Jul-2001 |
davidn |
Fix a possible NULL reference that would be triggered by invalid input in /etc/crontab.
MFC after: 2 days
|
80029 |
20-Jul-2001 |
obrien |
Perform a major cleanup of the usr.sbin Makefiles. These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
|
79861 |
18-Jul-2001 |
dd |
Remove an unused variable, and don't try to print a char[] using %d.
Submitted by: Mark Peek <mark@whistle.com>
|
79860 |
18-Jul-2001 |
dd |
free_entry(): Don't free e->envp if it's already NULL; likewise for e->cmd. free_entry() now does the right thing with partially-initialized structures.
load_entry(): Don't call env_free() on e->envp throughout the routine before jumping to eof; the free_entry() call at that label will take care of it. The previous behavior resulted in e->envp being free'd twice (well, the second time would usually result in a crash, but that's besides the point); once in load_entry(), and once in free_entry() after the former called the latter. Also note that the check added to free_entry() (above) doesn't help, since e->envp wasn't reset to NULL after env_free().
Submitted by: Mark Peek <mark@whistle.com>
|
79755 |
15-Jul-2001 |
dd |
Remove whitespace at EOL.
|
79452 |
09-Jul-2001 |
brian |
Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
|
78321 |
16-Jun-2001 |
peter |
Where is the pointy hat? Fix cut/paste error. (hey, it compiled! :-)
|
78156 |
13-Jun-2001 |
dd |
Plug two memory leaks: call login_close() after login_getclass(), and use free_entry() instead of free() to free a struct _entry.
PR: 28108 Submitted by: Mark Peek <mark@whistle.com>
|
75456 |
13-Apr-2001 |
peter |
Remove the 'DO NOT EDIT THIS FILE' crud that we spit out with 'crontab -l'. Otherwise, "crontab -l > file; vi file; crontab file" adds an extra set of "DO NOT EDIT" markers each and every time which is a bit silly.
|
74816 |
26-Mar-2001 |
ru |
- Backout botched attempt to introduce MANSECT feature. - MAN[1-9] -> MAN.
|
74532 |
20-Mar-2001 |
ru |
Set the default manual section for usr.sbin/ to 8.
|
74375 |
17-Mar-2001 |
peter |
Stop cron from shouting in the syslog. Use setproctitle() instead, since smashing argv[0] doesn't have the intended effect of changing the ps(1) output these days.
PR: 25850
|
74020 |
09-Mar-2001 |
ru |
mdoc(7) police revision 1.15:
- replaced Oo/Oc enclosures with Op; - removed hard sentence breaks; - removed doubled space.
|
74010 |
09-Mar-2001 |
babkin |
The new version of the daylight time saving support. This time it works for any change of the time zone offset from GMT. To enable use the option -s.
|
73955 |
07-Mar-2001 |
peter |
Properly detach at startup. We could be passing revoked fd's to child processes or starting children with no fd 0 (stdin) at all etc. This is currently breaking on hub.freebsd.org.
|
72091 |
06-Feb-2001 |
asmodai |
Fix typo: seperate -> separate.
Seperate does not exist in the english language.
|
71898 |
01-Feb-2001 |
ru |
mdoc(7) police: split punctuation characters + misc fixes.
|
71407 |
23-Jan-2001 |
babkin |
Backed out the DST support changes.
|
71367 |
22-Jan-2001 |
ru |
mdoc(7) police: ``Ds'' is not certified (no macro with such name exist) to be used as the -width parameter, it is provided solely for backwards compatibility with old mdoc(7). To make this work, mdocNG is forced to provide a dummy ``Ds'' macro.
|
71358 |
22-Jan-2001 |
babkin |
Made the special handling of the daylight time switches optional, enabled by the option "-s" (for dSt). This returned the default behavior to its original form.
The new option name is not "-d" because that would cause associations with "debug" and cron already has "-x" for debugging, so this would cause confusion.
|
71301 |
20-Jan-2001 |
babkin |
Added sensible handling of switch to and from daylight saving time for the jobs that fall into the disappearing or duplicated time interval.
PR: bin/24494
|
71263 |
19-Jan-2001 |
ru |
mdoc(7) police: removed leading whitespaces that are not inside Bd/Ed; these hardly degrade the quality of the produced output.
|
71102 |
16-Jan-2001 |
ru |
Prepare for mdoc(7)NG.
|
69793 |
09-Dec-2000 |
obrien |
Add `_PATH_DEVZERO'. Use _PATH_* where where possible.
|
69230 |
26-Nov-2000 |
kris |
Correct definition of MAXHOSTNAMELEN in ifdef'ed out code
|
68965 |
20-Nov-2000 |
ru |
mdoc(7) police: use the new features of the Nm macro.
|
68575 |
10-Nov-2000 |
ru |
Avoid use of direct troff requests in mdoc(7) manual pages.
|
68388 |
06-Nov-2000 |
dwmalone |
Attempt to fix problem with users being able to convince the crontab program to read any file which is a valid crontab file.
The fix is based on that used in NetBSD and OpenBSD - we keep the file open while the user is editing it. This means that files must be edited in place. Cron attempts to warn you if your editor does not do this. The fact that the file must be edited in place is also noted in the man page.
This patch has been confirmed to work by atleast one person on -security and has been tested locally.
Obtained from: OpenBSD
|
67127 |
15-Oct-2000 |
paul |
Since -e and -r are right next to each other prompt before clobbering a crontab you were planning to edit.
|
62376 |
02-Jul-2000 |
ache |
Call login_close() to prevent parent from memory leaking in some cases due to vfork()
|
62367 |
01-Jul-2000 |
ache |
Prevent user from breaking his limits and restrictions or abusing sendmail by any other way via MAILTO tag (since sendmail is running from daemon). Now run sendmail from user, as any other cron user command.
Obtained from: Inspired by OpenBSD, but implementation is different
|
62365 |
01-Jul-2000 |
ache |
Make sure argv gets NULL terminated if cron entry has >= MAX_ARGS arguments
Obtained from: OpenBSD popen.c v1.3
|
62359 |
01-Jul-2000 |
ache |
Enable SIGCHLD to stop childs complaining to SIG_IGN of it. It helps perl f.e.
Obtained from: OpenBSD do_command.c v1.7
|
60826 |
23-May-2000 |
ghelmer |
Catch and report fdopen failures.
|
60825 |
23-May-2000 |
ghelmer |
Catch and report memory allocation failures.
|
59785 |
30-Apr-2000 |
ghelmer |
Allocate space for arrays of type "char *", not "char **". Rev 1.8 made the type consistently incorrect.
Noted by: Ben Smithurst <ben@scientia.demon.co.uk>
|
59727 |
28-Apr-2000 |
ghelmer |
Fix a situation where a pointer which should point to dynamically allocated memory was instead pointed to a static string. A later free() on the value of the pointer was a possible source of reported "warning: pointer to wrong page" messages from cron.
Use consistent types in sizeof when malloc'ing memory for the environment.
PR: kern/12248, bin/11169, bin/9722
|
58061 |
14-Mar-2000 |
sheldonh |
Revive rev 1.12 (NetBSD improvements including @ shortcuts).
|
58017 |
13-Mar-2000 |
ghelmer |
Fix parsing of commands after @ keywords (@hourly, @daily, etc.). Fix setting of "hour" bitmap when @hourly keyword is specified.
MFC candidate after 4.0-RELEASE.
Problem-found-by: Sheldon Hearn <sheldonh@uunet.co.za>
|
58014 |
13-Mar-2000 |
sheldonh |
Back out previous commit. The code is not ready for it.
|
57820 |
08-Mar-2000 |
sheldonh |
Merge in NetBSD improvements:
* Clarify quoting value in of name = value pairs. * Describe the @reboot, @yearly, @annually, @monthly, @weekly, @daily, @midnight and @hourly extensions.
PR: 17261 Submitted by: MIHIRA Yoshiro <sanpei@sanpei.org> Obtained from: NetBSD
|
50479 |
28-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
49732 |
14-Aug-1999 |
chris |
Bad reference of su(8) changed to su(1).
|
49622 |
11-Aug-1999 |
sheldonh |
Christen a BUGS section for an explanation of the impact of Daylight Savings Time on cron(8). If we ever introduce some work-around code for handling jobs scheduled for a time that "doesn't happen" due to DST, the section should be renamed to IMPLEMENTATION NOTES.
PR: 10947 Reported by: Scott Drassinower <scottd@cloud9.net> Submitted by: Seth Bromberger <seth@freebie.dp.ny.frb.org> Reviewed by: mpp
|
49134 |
27-Jul-1999 |
n_hibma |
Changed 'overriding what /etc/passwd says' to 'overriding default set by cron'
PR: 12520 Submitted by: (not specified)
|
45369 |
06-Apr-1999 |
peter |
This is a hack. Cron runs with stdin/out/err pointing to /dev/console, which init thoughtfully revoke()'s when starting a getty on ttyv0. This Cron's popen() was passing these fd's through to cron children (ie: sendmail, *not* normal cron jobs). The side effects were usually not noticed, but it tripped up postfix which did a sanity check to see that stdin/out/err were open, and got EBADF even thought the fd's were in use. I seem to recall sendmail itself has hacks to work around this problem, it had a checkfd012() function, possibly for this same problem. (Postfix has a workaround too now though..)
This is a hack, not a fix. It's probably best to check and perhaps close/reopen() /dev/console if needed each time around the event loop. It would probably be useful to actually see any error messages from cron.
|
42711 |
16-Jan-1999 |
danny |
y2k nit: print 4 digit years correctly. PR: 9506 Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
|
41723 |
13-Dec-1998 |
dillon |
PR: bin/5572
Prevent cron from going crazy if the time steps. For example, if you have a system with hundreds of users and lots of different crontabs and your time steps back an hour, the old cron would then attempt to run an hours worth of cron jobs in a few seconds.
|
37450 |
06-Jul-1998 |
bde |
Fixed printf format errors.
|
34809 |
23-Mar-1998 |
charnier |
.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.
|
34215 |
08-Mar-1998 |
bde |
Added forgotten new file for `-Lfoo -lbar' -> `foo/bar.a' change.
|
34160 |
07-Mar-1998 |
bde |
Use `foo/bar.a' instead of `-Lfoo -lbar' for linking to static internal libraries so that `ld -f' in can create correct dependencies for yet-to-be-built libraries.
Get the default BINDIR correctly (by including ../Makefile.inc recursively. Override the default it it is wrong.
Don't override defaults when the defaults are correct.
|
31812 |
17-Dec-1997 |
bde |
Don't use LDDESTDIR. Just put the -L arg in LDADD.
|
30895 |
02-Nov-1997 |
ache |
Log run-time parsing errors now
Use getpwnam before getpwuid since two users with same uids can exists (affects new login classes code only)
The same fixes as in inetd: by default run `system crontab things' with daemon login class now, not restrict them to user class breaking compatibility with old way (so-called nobody limits problem)
Implement user[:group][/login-class] syntax in system crontab for more flexible control (the same as in inetd)
|
29988 |
29-Sep-1997 |
wosch |
Sort cross refereces in section SEE ALSO.
|
29452 |
15-Sep-1997 |
charnier |
Use err(3). Rewrote man page in mdoc format.
|
27040 |
29-Jun-1997 |
pst |
NOSHARED takes a yes/YES no/NO value, not "true, false, hey mon!". NOPIC is used to not generate a shared library, not NOSHARED. Make NOSHARED advisory where appropriate. Remove bogus NOSHARED (kbdio).
|
24428 |
31-Mar-1997 |
imp |
compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic.
|
23886 |
14-Mar-1997 |
peter |
Tone down the paranoia a bit in from the previous commit. setusercontext() automatically Does The Right Thing when lc == NULL, which just happens to be what the extra code in cron was trying to do. Simplify.
|
23884 |
14-Mar-1997 |
peter |
For some reason, the old login class code didn't seem to be working here. I suspect it was because the child exec code's parent was doing the initial lookups, then forking, then doing other things (possibly trashing the static data in the getpw*() buffer), then attempting to dereference *pwd and *lc. Also, no error checking appeared to be done - I've allowed it to fall back to the old "become user" code on critical failure rather than risk running a user's cron jobs as root.
|
22997 |
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
22627 |
13-Feb-1997 |
mpp |
crontab(5) incorrectly documented the dom/month arguments. They have valid ranges of 1-31 and 1-12, not 0-31 and 0-12.
|
21908 |
21-Jan-1997 |
davidn |
Fix compile breakage: link against libutil.
|
21895 |
20-Jan-1997 |
davidn |
Make cron login class savvy. Use setusercontext() rather than setuid()/setgid()/setlogin()/initgroups() which is all handled. Login environment is NOT set by this call as crontab provides its own means of doing so.
|
21673 |
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
20573 |
17-Dec-1996 |
pst |
Replace my "inane" usage of snprintf to copy strings with strncpy as used by OpenBSD. (Quite frankly, I think it's perfectly reasonable to use snprintf to copy strings, given that the semantics for strncpy() are utterly idiotic and there is no POSIX sstrncpy().)
While I'm at it, incorporate some of OpenBSD's bugfixes to cron.
NOT for 2.2
|
20557 |
16-Dec-1996 |
pst |
Close yet another buffer overrun
|
19594 |
10-Nov-1996 |
wosch |
Add sendmail option '-oi'
-oi Do not take dots on a line by themselves as a message terminator.
Now this crontab entry works: * * * * * echo foo; echo .; echo blah
|
18203 |
10-Sep-1996 |
peter |
personal (ie: with the crontab command) cron tabs were broken by the last change. :-( ie: /var/cron/log would report: .. cron[206]: (usage) CAN'T OPEN (%s/%s)
|
18179 |
08-Sep-1996 |
pst |
Fix some buffer overflow problems...
|
17439 |
05-Aug-1996 |
pst |
Gratuitous whitespace change so that I can commit the source of the recent buffer overflow patch. Reviewed by: pst Submitted by: Dave Andersen <angio@aros.net>
|
17436 |
05-Aug-1996 |
pst |
Fix up some more buffer overflow problems.
|
16859 |
30-Jun-1996 |
wosch |
fix: debug flag 'test' cause endless loop document debug flags
close PR bin/683
|
16663 |
24-Jun-1996 |
jkh |
Bring in my changes for removing the pestilent obj links (unless you really want them) from /usr/src. This is the final version of the patches, incorporating the feedback I've received from -current.
|
15161 |
09-Apr-1996 |
scrappy |
Quick patch to fix a bug where issuing ctl-c while in crontab -e leaves editor running in background (PR: bin/751)
Submitted by: candy@fct.kgc.co.jp (Toshihiro Kanda)
|
13123 |
30-Dec-1995 |
peter |
This commit was generated by cvs2svn to compensate for changes in r13122, which included commits to RCS files with non-trunk default branches.
|
10660 |
10-Sep-1995 |
joerg |
Fix a bug that prevented %'s and \'s from being passed to the program invoked.
Submitted by: fenner@parc.xerox.com (Bill Fenner)
|
10401 |
28-Aug-1995 |
mpp |
Check for expired passwords before allowing access to the system.
|
9414 |
06-Jul-1995 |
ache |
Remove LOG_FILE definition, close PR 595 Submitted by: roberto@blaise.ibp.fr
|
8857 |
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
8379 |
09-May-1995 |
rgrimes |
Fix nested comments for -Wcomment warnings.
|
8169 |
29-Apr-1995 |
ache |
HAVE_SAVED_UIDS not depends of BSD version but depends of _POSIX_SAVED_IDS from unistd.h, fix it.
|
8164 |
29-Apr-1995 |
ache |
Fix typo in HAVE_SAVED_UIDS define
|
7828 |
14-Apr-1995 |
ache |
Fix MAILTO hole by passing -t to sendmail Submitted by: Mike Pritchard <pritc003@maroon.tc.umn.edu>
|
7809 |
13-Apr-1995 |
ache |
Really fix MAILTO hole by parsing spaces. Remove local bitstring copy
|
7778 |
12-Apr-1995 |
ache |
Don't set -or0s (timeout 0) for possible network MAILTO
|
7776 |
12-Apr-1995 |
ache |
Fix home dir cheating
|
7775 |
12-Apr-1995 |
ache |
Close MAILTO security hole
|
5176 |
21-Dec-1994 |
ache |
Now crontab works not only for vi editor, i.e. refers to file name not to file fd
|
4189 |
06-Nov-1994 |
smace |
Make /usr/bin/crontab install setuid root. (doesn't work otherwise) The distributed makefile in the package installs it setuid root.. Reviewed by: jkh
|
2394 |
29-Aug-1994 |
jkh |
Use LDDESTDIR and DPADD more consistently with what Bruce suggests.. Submitted by: jkh
|
2387 |
29-Aug-1994 |
jkh |
Make the LDADD stuff work properly with obj dirs. Whoops. Submitted by: jkh
|
2329 |
28-Aug-1994 |
jkh |
Prevent installation. Submitted by: jkh
|
2328 |
28-Aug-1994 |
jkh |
Set proper destination directory for cron. Submitted by: jkh
|
2312 |
27-Aug-1994 |
jkh |
This commit was generated by cvs2svn to compensate for changes in r2311, which included commits to RCS files with non-trunk default branches.
|