diff options
author | jlam <jlam@pkgsrc.org> | 2005-09-20 04:23:48 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-09-20 04:23:48 +0000 |
commit | 5b62763c632fec2c0d7cc1986b8a5942802e1fb4 (patch) | |
tree | 84aedec85849e3ca8800e9873f907df49c7579dc /mk | |
parent | fdb9b42b02765cfc044865b1711f9db9c77afafb (diff) | |
download | pkgsrc-5b62763c632fec2c0d7cc1986b8a5942802e1fb4.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/shell | 3 |
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 : |