delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/09/13/08:28:30

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-developers-unsubscribe-archive-cygwin-developers=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Message-ID: <19990913122727.16494.rocketmail@web135.yahoomail.com>
Date: Mon, 13 Sep 1999 05:27:27 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: Re: /etc/passwd emulation
To: Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>,
cygwin-developers <cygwin-developers AT sourceware DOT cygnus DOT com>
MIME-Version: 1.0


--- Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp> wrote:
> >>> On Sat, 11 Sep 1999 21:41:37 +0200
> >>> Corinna Vinschen <corinna AT vinschen DOT de> said:
> 
> > The call to getlogin() is the same as a call to GetUserName()
> > but if it fails, it returns 'unknown'. The original source of
> > read_etc_passwd() sets 'Administrator' as fallback and this is
> > the only difference. While the username is senseless on 9X
> > systems, on NT 'Administrator' would be a better fallback than
> > 'unknown'.So, why should it be changed then...
> 
> Are there any cases that GetUserName() fails on NT ? I understand
> GetUserName() fails mainly on 9X, and I don't want to see
> 'Administrator' on 9x.

But, on 9x everyone is the Administrator so the fallback is correct.
===
Earnie Boyd <mailto:earnie_boyd AT yahoo DOT com>

Newbies, please visit
<http://www.freeyellow.com/members5/gw32/index.html>

(If you respond to the list, then please don't cc me)
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

- Raw text -


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