From owner-freebsd-bugs@FreeBSD.ORG Sun Dec 18 15:20:09 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A24F3106564A for ; Sun, 18 Dec 2011 15:20:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 793F58FC15 for ; Sun, 18 Dec 2011 15:20:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pBIFK9qV081227 for ; Sun, 18 Dec 2011 15:20:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pBIFK9gj081226; Sun, 18 Dec 2011 15:20:09 GMT (envelope-from gnats) Resent-Date: Sun, 18 Dec 2011 15:20:09 GMT Resent-Message-Id: <201112181520.pBIFK9gj081226@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mike Clarke Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA1FD106566B for ; Sun, 18 Dec 2011 15:12:25 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id C88908FC15 for ; Sun, 18 Dec 2011 15:12:25 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pBIFCPMu004069 for ; Sun, 18 Dec 2011 15:12:25 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id pBIFCPdD004068; Sun, 18 Dec 2011 15:12:25 GMT (envelope-from nobody) Message-Id: <201112181512.pBIFCPdD004068@red.freebsd.org> Date: Sun, 18 Dec 2011 15:12:25 GMT From: Mike Clarke To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: conf/163432: Environment variables set from /etc/login.conf do not have surrounding quote characters removed X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2011 15:20:09 -0000 >Number: 163432 >Category: conf >Synopsis: Environment variables set from /etc/login.conf do not have surrounding quote characters removed >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 18 15:20:08 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Mike Clarke >Release: FreeBSD 9.0-RC2 amd64 >Organization: >Environment: System: FreeBSD curlew.lan 9.0-RC2 FreeBSD 9.0-RC2 #0: Sat Nov 12 18:35:25 UTC 2011 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: If /etc/login.conf is used to set an environment variable and the value is enclosed between quote characters the quotes are not stripped off when setting the variable. This problem only arises with FreeBSD 9, the quotes were removed with earlier versions. >How-To-Repeat: Add a value for EXINIT to the default /etc/login.conf as shown below: :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES,EXINIT="set ai ic sw=3":\ Then login and check the value of EXINIT, the quotes have been included and it appears as "set ai ic sw=3" instead of set ai ic sw=3. The presence of the quotes prevents vi from setting these options. >Fix: As a workaround edit /etc/login.conf to remove the surrounding quotes from the item in the setenv line. However this will not work if you need to include commas in the value. >Release-Note: >Audit-Trail: >Unformatted: