Hello, crontab(5) : Several environment variables are set up automatically by the cron(8) daemon. SHELL is set to /bin/sh, PATH is set to /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin, and LOGNAME and HOME are set from the /etc/passwd line of the crontab's owner. /etc/crontab : PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin I then think that /etc/crontab should set : PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin (I also think that /etc is no more needed in $PATH since this commit : https://github.com/freebsd/freebsd/commit/77f8fc2dc8a4b898c69e145ecb5c0e72aab05968) It would be more coherent, and also more convenient, without being more risky. Thank you very much ! Ben
Hi, Any thoughts about this ? Many thx ! Ben
See https://github.com/freebsd/freebsd/pull/155 for a fix. Thank you !
Fix merged with r334909, thank you Warner Losh !
Assign to committer that resolved. Unsure if this was eventually MFC'd to stable/11, but appears to be a good candidate. @Warner, can we re-open this and merge it there? [1] [1] https://twitter.com/socrueldotnu/status/1073538274449391616
(In reply to Kubilay Kocak from comment #4) I'd forgotten about this. MFC'd now.
MFC'd in r342103