Skip to content

Commit 9865d89

Browse files
committed
Merge pull request #1347 from skreuzer/fbsd-cron
Add path to crontabs on FreeBSD
2 parents f84a172 + 5350e1b commit 9865d89

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libenv/sysinfo.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,10 @@ static void OSClasses(EvalContext *ctx)
11301130
{
11311131
snprintf(vbuff, CF_BUFSIZE, "/var/spool/cron/%s", pw->pw_name);
11321132
}
1133+
else if (EvalContextClassGet(ctx, NULL, "freebsd"))
1134+
{
1135+
snprintf(vbuff, CF_BUFSIZE, "/var/cron/tabs/%s", pw->pw_name);
1136+
}
11331137
else
11341138
{
11351139
snprintf(vbuff, CF_BUFSIZE, "/var/spool/cron/crontabs/%s", pw->pw_name);

0 commit comments

Comments
 (0)