summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2005-09-20 04:23:48 +0000
committerjlam <jlam>2005-09-20 04:23:48 +0000
commit6ecba3ff13b66859db243c160e3c38c42aac92b1 (patch)
tree84aedec85849e3ca8800e9873f907df49c7579dc /mk
parenta38d6389cd0eb4afccbe21c351a0e4b9e392852d (diff)
downloadpkgsrc-6ecba3ff13b66859db243c160e3c38c42aac92b1.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')
-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
: