Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Feb 2014 14:56:13 GMT
From:      Rodrigo Osorio <rodrigo@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/186895: shells/pdksh install breaks /etc/shells
Message-ID:  <201402191456.s1JEuD9U037328@cgiserv.freebsd.org>
Resent-Message-ID: <201402191500.s1JF01ms059960@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         186895
>Category:       ports
>Synopsis:       shells/pdksh install breaks /etc/shells
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 19 15:00:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Rodrigo Osorio
>Release:        
>Organization:
>Environment:
FreeBSD q 10.0-BETA3 FreeBSD 10.0-BETA3 #0 r257580: Sun Nov  3 21:15:32 UTC 2013     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Install script add invalid lines in the /etc/shells file

% cat /etc/shells
/bin/sh
/bin/csh
/bin/tcsh
/usr/local/bin/ksh
/usr/local/man/man1/ksh.1.gz

Reported by : Scott Bennett
>How-To-Repeat:

>Fix:
Patch attached

Patch attached with submission follows:

Index: pkg-plist
===================================================================
--- pkg-plist	(revision 345077)
+++ pkg-plist	(working copy)
@@ -1,4 +1,4 @@
+man/man1/ksh.1.gz
 bin/ksh
-man/man1/ksh.1.gz
 @exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
 @unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402191456.s1JEuD9U037328>