delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/09/10/06:01:13

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
To: cygwin-developers <cygwin-developers AT sourceware DOT cygnus DOT com>
Subject: Re: /etc/passwd emulation
References: <1503 DOT 990910 AT logos-m DOT ru>
Mime-Version: 1.0 (generated by tm-edit 7.106)
From: Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
Date: 10 Sep 1999 19:00:29 +0900
In-Reply-To: Egor Duda's message of Fri, 10 Sep 1999 12:05:13 +0400
Message-ID: <s1s7llzrsqq.fsf@jaist.ac.jp>
Lines: 18
X-Mailer: Gnus v5.3/Emacs 19.34

>>> On Fri, 10 Sep 1999 12:05:13 +0400
>>> Egor Duda <deo AT logos-m DOT ru> said:

> hmm. calling getuid() in /etc/passwd emulation code seems to be rather
> strange, as long as getuid() use /etc/passwd to retrieve uid :)
> 
> So, actually getuid() will always return DEFAULT_UID :)

I see.

Now, I came to realize it is not so bad idea that the uid become
always DEFAULT_UID when there is no /etc/passwd. I couldn't,
however, understand why the emulation code make the user name
`Administrator' when GetUserNameA() fails.
____
  | AIST      Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology

- Raw text -


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