delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/06/29/03:57:22

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
Date: Sat, 29 Jun 2002 09:57:14 +0200
From: Corinna Vinschen <vinschen AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: Slowdown
Message-ID: <20020629095714.D1247@cygbert.vinschen.de>
Reply-To: cygwin-developers AT cygwin DOT com
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <3D1B4043 DOT EF2CA37A AT ieee DOT org> <3D1B4043 DOT EF2CA37A AT ieee DOT org> <3 DOT 0 DOT 5 DOT 32 DOT 20020627224059 DOT 0080d5b0 AT mail DOT attbi DOT com> <20020629031639 DOT GA14536 AT redhat DOT com>
Mime-Version: 1.0
In-Reply-To: <20020629031639.GA14536@redhat.com>
User-Agent: Mutt/1.3.22.1i

On Fri, Jun 28, 2002 at 11:16:39PM -0400, Chris Faylor wrote:
> [redirecting to cygwin-developers from a private discussion]
> On Thu, Jun 27, 2002 at 10:40:59PM -0400, Pierre A. Humblet wrote:
> >If on entering from Windows a user doesn't have HOME defined and
> >doesn't have a home in passwd, and doesn't have HOMEDRIVE/HOMEPATH,
> >then let's set HOME to some sane value such as WINDIR or c:\,
> >rather than risking a lookup. The user will eventually run mkpasswd...
> 
> Really?  That's a departure from the way things used to work, isn't it?
> Don't you think there will be complaints?
> 
> Corinna?

I'm just somewhat confused how that should happen at all when starting
the session in a local console window.  It could be possible to have a
HOMEPATH only and not a HOMEDRIVE and in that case we shouldn't need a
lookup., that's ok.  The only way I can think of that HOMEPATH *and*
HOMEDRIVE are missing is by accidentally (or sportively) user intervention. 
In that case both perspectives are valid, either Cygwin should try its
best (lookup) or the user gets what she brought onto herself (no lookup). 

I think it's most sane to

- Look for $HOME
- Try /etc/passwd
- Look for HOMEDRIVE/HOMEPATH
- Lookup on the server
- Give up, aka use HOME=/home/$username

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019