X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 31 May 2010 20:54:35 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: base-files: LOGNAME
Message-ID: <20100531185435.GO16885@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <4C021FA8.4030403@users.sourceforge.net> <AANLkTilUfdSyZF6bVEKHCqImBF62vIu8aV2SNq2cx6xI@mail.gmail.com> <0e02511a11473cd99d0035122f0c6dc0.squirrel@mail.morrison.mine.nu> <4C02AA5A.4050704@users.sourceforge.net> <20100531122208.GH16885@calimero.vinschen.de> <50ac47e545b4562142466c5a3f9b9058.squirrel@mail.morrison.mine.nu> <20100531155858.GK16885@calimero.vinschen.de> <4C03EA42.9040003@users.sourceforge.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <4C03EA42.9040003@users.sourceforge.net>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On May 31 11:56, Yaakov S wrote:
> On 2010-05-31 10:58, Corinna Vinschen wrote:
> >I don't know where the logname tool is getting the wrong case from.  But
> >that still allows to do an `export LOGNAME=$USER'
> 
> Per POSIX, logname(1) must output the exact value of getlogin(3).

Good hint.  Actually this was a Cygwin problem.  Basically the user name
is first set to what defined by Windows.  Later in the initialization it
gets set to the username defined in /etc/passwd.  But only if the name
is different in a case-insensitive manner.  If the Cygwin user name only
differs from the Windows username by case, the name didn't get changed.
I fixed that in CVS.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

