[Bug 204813] suggeted improvement for crontab(1)'s newly created files

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jan 5 16:21:46 UTC 2016


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

--- Comment #4 from commit-hook at freebsd.org ---
A commit references this bug:

Author: jilles
Date: Tue Jan  5 16:21:21 UTC 2016
New revision: 293204
URL: https://svnweb.freebsd.org/changeset/base/293204

Log:
  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

Changes:
  head/include/paths.h
  head/lib/libc/gen/exec.3
  head/lib/libc/gen/posix_spawn.3
  head/usr.sbin/cron/crontab/crontab.5

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


More information about the freebsd-bugs mailing list