This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: passwd edited /etc/passwd patch
- From: Corinna Vinschen <cygwin-patches at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Thu, 13 Jun 2002 18:07:14 +0200
- Subject: Re: passwd edited /etc/passwd patch
- References: <Pine.CYG.4.44.0206112017330.772-200000@iocc.com>
On Tue, Jun 11, 2002 at 08:18:15PM -0500, Joshua Daniel Franklin wrote:
> + /* Try getting a Win32 username in case the user edited /etc/passwd */
> + if (ret == NERR_UserNotFound)
> + {
> + if ((pw = getpwnam (user)))
> + cygwin_internal (CW_EXTRACT_DOMAIN_AND_USER, pw, domain, (char *) user);
Thanks for the patch but, hmm, I think I'd prefer to look always for
the Cygwin username first.
It's unlikely and probably just an academic case but you could have
the Cygwin username user_a for the windows user user_b and vice versa.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.