This is the mail archive of the
cygwin-developers@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: /etc/passwd emulation
- To: cygwin-developers <cygwin-developers@sourceware.cygnus.com>
- Subject: Re: /etc/passwd emulation
- From: Kazuhiro Fujieda <fujieda@jaist.ac.jp>
- Date: 10 Sep 1999 19:00:29 +0900
- References: <1503.990910@logos-m.ru>
>>> On Fri, 10 Sep 1999 12:05:13 +0400
>>> Egor Duda <deo@logos-m.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@jaist.ac.jp>
| HOKURIKU School of Information Science
o_/ 1990 Japan Advanced Institute of Science and Technology