This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: getpwuid, getuid, home
- To: cygwin <cygwin at sources dot redhat dot com>
- Subject: Re: getpwuid, getuid, home
- From: Corinna Vinschen <vinschen at cygnus dot com>
- Date: Tue, 19 Sep 2000 17:22:19 -0400
- References: <200009181037.KAA01163@hermes.epita.fr>
- Reply-To: cygwin <cygwin at sources dot redhat dot com>
flav astraud wrote:
>
> hello,
> I would like to create a directory in the user path,
> On unix I do 'getpwuid(getuid())'
> what can I do under cygwin ??
The same as long as your /etc/passwd isn't screwed up.
> What happen when I do 'getenv("HOME")' ??
It depends.
If you run a console window: It's set if you have it set
explicitly.
If you start from telnet/ssh: It's the value from your /etc/passwd
pw_dir entry.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@sources.redhat.com
Red Hat, Inc.
mailto:vinschen@cygnus.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com