[DragonFlyBSD - Submit #3220] (Closed) [PATCH] use $PATH set by login.conf

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Wed Jun 10 23:11:18 PDT 2020


Issue #3220 has been updated by deef.

Due date set to 06/11/2020
Status changed from New to Closed
% Done changed from 0 to 100

Thank you.

Changes partially imported with commit fbed7187+. Removal of /usr/pkg from PATH is planned as a part of other maintenance work.

----------------------------------------
Submit #3220: [PATCH] use $PATH set by login.conf
http://bugs.dragonflybsd.org/issues/3220#change-13899

* Author: Anonymous
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
---
etc/login.conf         | 2 +-
etc/root/dot.cshrc     | 2 --
etc/root/dot.profile   | 2 --
share/skel/dot.cshrc   | 2 +-
share/skel/dot.profile | 4 ----
5 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/etc/login.conf b/etc/login.conf
index 924c977c70..1ac23f1026 100644
--- a/etc/login.conf
+++ b/etc/login.conf
@@ -27,7 +27,7 @@ default:\
	:copyright=/etc/COPYRIGHT:\
	:welcome=/etc/motd:\
	:setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\
-	:path=/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/pkg/sbin /usr/pkg/bin ~/bin:\
+	:path=/sbin /bin /usr/sbin /usr/bin /usr/games /raven/sbin /raven/bin /usr/local/sbin /usr/local/bin ~/bin:\
	:nologin=/var/run/nologin:\
	:cputime=unlimited:\
	:datasize=unlimited:\
diff --git a/etc/root/dot.cshrc b/etc/root/dot.cshrc
index 5fe105df4e..1cc5d4676c 100644
--- a/etc/root/dot.cshrc
+++ b/etc/root/dot.cshrc
@@ -14,8 +14,6 @@ alias ll	ls -lA
 # A righteous umask
umask 22

-set path = (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin /usr/pkg/bin /usr/pkg/sbin /usr/games $HOME/bin)
-
setenv	EDITOR	vi
setenv	PAGER	less
setenv	BLOCKSIZE	K
diff --git a/etc/root/dot.profile b/etc/root/dot.profile
index aed84137df..ec40124964 100644
--- a/etc/root/dot.profile
+++ b/etc/root/dot.profile
@@ -1,7 +1,5 @@
 # $FreeBSD: src/etc/root/dot.profile,v 1.20 1999/08/27 23:24:09 peter Exp $
 #
-PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/pkg/sbin:/usr/pkg/bin
-export PATH
HOME=/root
export HOME
TERM=${TERM:-cons25}
diff --git a/share/skel/dot.cshrc b/share/skel/dot.cshrc
index a89117f113..208396a6e0 100644
--- a/share/skel/dot.cshrc
+++ b/share/skel/dot.cshrc
@@ -13,7 +13,7 @@ alias ll	ls -lAF

 # These are normally set through /etc/login.conf.  You may override them here
 # if wanted.
-# set path = (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin $HOME/bin)
+# set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /raven/sbin /raven/bin /usr/local/sbin /usr/local/bin $HOME/bin)
 # setenv	BLOCKSIZE	K
 # A righteous umask
 # umask 22
diff --git a/share/skel/dot.profile b/share/skel/dot.profile
index 6e1c04820f..a55b1f0b71 100644
--- a/share/skel/dot.profile
+++ b/share/skel/dot.profile
@@ -4,10 +4,6 @@
 #
 # see also sh(1), environ(7).
 #
-
-# remove /usr/games if you want
-PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/pkg/sbin:/usr/pkg/bin:$HOME/bin; export PATH
-
 # Setting TERM is normally done through /etc/ttys.  Do only override
 # if you're sure that you'll never log in via telnet or xterm or a
 # serial line.
-- 
2.24.1



-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Submit mailing list