[Git-commits] [grml/grml-etc-core] 694882: zshenv: avoid placing empty components in PATH; re...

Dr. András Korn korn-github.com at elan.rulez.org
Thu Jun 4 00:08:11 CEST 2015


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml-etc-core
  Commit: 69488205afe631b2d9489d0941d3290e1577faf9
      https://github.com/grml/grml-etc-core/commit/69488205afe631b2d9489d0941d3290e1577faf9
  Author: Dr. András Korn <korn-github.com at elan.rulez.org>
  Date:   2015-06-04 (Thu, 04 Jun 2015)

  Changed paths:
    M etc/zsh/zshenv

  Log Message:
  -----------
  zshenv: avoid placing empty components in PATH; reorder root's PATH

zsh treats an empty PATH component ("::") as ".", which creates a
security hole. Sanitize PATH by explicitly removing empty
components.

As agreed on #grml, root's PATH should also list /usr/local/sbin
and /usr/local/bin before /sbin, /bin, /usr/sbin and /usr/bin;
and there is no harm in adding $HOME/bin unconditionally as the
first PATH component.




More information about the Git-commits mailing list