summaryrefslogtreecommitdiff
path: root/mk/install
diff options
context:
space:
mode:
authorjlam <jlam>2005-09-20 04:23:48 +0000
committerjlam <jlam>2005-09-20 04:23:48 +0000
commit898b9e761c53a4bd534a5f7ce8029a34c47e83d8 (patch)
tree84aedec85849e3ca8800e9873f907df49c7579dc /mk/install
parent90aec071264aad1b954aaeed4684cf5f3e6cf66a (diff)
downloadpkgsrc-898b9e761c53a4bd534a5f7ce8029a34c47e83d8.tar.gz
Teach the +SHELLS helper script to not create an /etc/shells file if
one doesn't exist. From now on, we only add the listed PKG_SHELL to the /etc/shells file if it already exists. This fixes PR pkg/27162.
Diffstat (limited to 'mk/install')
-rw-r--r--mk/install/shell3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/install/shell b/mk/install/shell
index fb295a2bdaa..3e7ec9fb54b 100644
--- a/mk/install/shell
+++ b/mk/install/shell
@@ -1,6 +1,6 @@
#!@SH@
#
-# $NetBSD: shell,v 1.3 2005/08/23 09:33:14 abs Exp $
+# $NetBSD: shell,v 1.4 2005/09/20 04:23:49 jlam Exp $
#
# +SHELL - shell registration script
#
@@ -71,6 +71,7 @@ ADD)
${TEST} -f "$shell" || continue
shelldb="/etc/shells"
+ ${TEST} -f "$shelldb" || continue
if ${TEST} -f "$shelldb" && \
${GREP} "^$shell" $shelldb >/dev/null; then
: