getpwuid, getuid, home
Corinna Vinschen
vinschen@cygnus.com
Tue Sep 19 14:22:00 GMT 2000
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
More information about the Cygwin
mailing list