Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 Subject: Re: /etc/passwd emulation References: <1503 DOT 990910 AT logos-m DOT ru> Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII From: Kazuhiro Fujieda 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: Lines: 18 X-Mailer: Gnus v5.3/Emacs 19.34 >>> On Fri, 10 Sep 1999 12:05:13 +0400 >>> Egor Duda 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 | HOKURIKU School of Information Science o_/ 1990 Japan Advanced Institute of Science and Technology