This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: getpwuid, getuid, home


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]