aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/cron
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2016-01-05 16:21:20 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2016-01-05 16:21:20 +0000
commit43d53dba8ff97ef82be216178626c3b545cce30f (patch)
tree1d6df1e16925bef49c86dc9b9398f394e582272b /usr.sbin/cron
parent16ef2e1a9be003d7177ac978b039725256cd7fee (diff)
downloadsrc-43d53dba8ff97ef82be216178626c3b545cce30f.tar.gz
src-43d53dba8ff97ef82be216178626c3b545cce30f.zip
Add sbin and /usr/local directories to _PATH_DEFPATH.
Set _PATH_DEFPATH to /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin. This is the path in the default class in the default /etc/login.conf, excluding ~/bin which would not be expanded properly in a string constant. For normal logins, _PATH_DEFPATH is overridden by /etc/login.conf, ~/.login_conf or shell startup files. _PATH_DEFPATH is still used as a default by execlp(), execvp(), posix_spawnp() and sh if PATH is not set, and by cron. Especially the latter is a common trap (most recently in PR 204813). PR: 204813 Reviewed by: secteam (delphij), alfred
Notes
Notes: svn path=/head/; revision=293204
Diffstat (limited to 'usr.sbin/cron')
-rw-r--r--usr.sbin/cron/crontab/crontab.54
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/cron/crontab/crontab.5 b/usr.sbin/cron/crontab/crontab.5
index 5222d2d99334..acd6cb5381a6 100644
--- a/usr.sbin/cron/crontab/crontab.5
+++ b/usr.sbin/cron/crontab/crontab.5
@@ -17,7 +17,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd April 28, 2012
+.Dd January 5, 2016
.Dt CRONTAB 5
.Os
.Sh NAME
@@ -74,7 +74,7 @@ is set to
.Pa /bin/sh ,
.Ev PATH
is set to
-.Pa /usr/bin:/bin ,
+.Pa /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin ,
and
.Ev LOGNAME
and