passwd edited /etc/passwd patch
Joshua Daniel Franklin
joshuadfranklin@yahoo.com
Thu Jun 13 21:04:00 GMT 2002
--- Corinna Vinschen <cygwin-patches@cygwin.com> wrote:
> 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.
>
Umm...kay. I was trying to avoid the extra system call, but I guess it
probably won't make much difference. I'm having build problems right now
but I think this patch will do what you're asking.
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: passwd.c-patch
Type: application/octet-stream
Size: 841 bytes
Desc: passwd.c-patch
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020613/a90e0b7c/attachment.obj>
More information about the Cygwin-patches
mailing list