[Bug 235792] cron(8) does not respect login.conf environment vars

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Feb 17 02:46:14 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235792

            Bug ID: 235792
           Summary: cron(8) does not respect login.conf environment vars
           Product: Base System
           Version: 11.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: andrew at tao11.riddles.org.uk

cron source code says:

/* Set user's entire context, but skip the environment
 * as cron provides a separate interface for this

The fact that environment variables can be set in the crontab doesn't justify
ignoring login.conf; it just introduces usability obstacles by requiring
duplicate settings everywhere. cron should respect all parts of the user's
login class, not pick and choose.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list