summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron/lib
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2016-11-16 07:03:24 +0000
committerbapt <bapt@FreeBSD.org>2016-11-16 07:03:24 +0000
commit1f6a31cefa15fc288e68fd28341349da9769513b (patch)
treea6ceb18a7cc9bb1a96af1f2bfd854283fb215e4a /usr.sbin/cron/lib
parentcbe6fc290ffa55727150015d8214b00a54fd6e97 (diff)
downloadFreeBSD-src-1f6a31cefa15fc288e68fd28341349da9769513b.zip
FreeBSD-src-1f6a31cefa15fc288e68fd28341349da9769513b.tar.gz
MFC r308139, r308157-r308158
r308139: 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 Reviewed by: adrian MFC after: 2 weeks Relnotes: yes Sponsored by: Gandi.net Differential Revision: https://reviews.freebsd.org/D8400 r308157: Fix typo in cron(8) date Reported by: jilles r308158: Allow symlinks to be followed in cron.d directories and fix detection of regular files on NFS Reported by: jilles
Diffstat (limited to 'usr.sbin/cron/lib')
-rw-r--r--usr.sbin/cron/lib/misc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/cron/lib/misc.c b/usr.sbin/cron/lib/misc.c
index afed07f..6a0b8ac 100644
--- a/usr.sbin/cron/lib/misc.c
+++ b/usr.sbin/cron/lib/misc.c
@@ -385,11 +385,7 @@ out: if (allow)
void
-log_it(username, xpid, event, detail)
- char *username;
- int xpid;
- char *event;
- char *detail;
+log_it(char *username, int xpid, char *event, const char *detail)
{
#if defined(LOG_FILE) || DEBUGGING
PID_T pid = xpid;
OpenPOWER on IntegriCloud