passwd help/version patch

Corinna Vinschen
Mon Jun 3 11:00:00 GMT 2002

On Thu, May 30, 2002 at 09:12:24PM -0500, Joshua Daniel Franklin wrote:
> After working on it a while, I think that exporting a
> cygwin_extract_nt_dom_user() would be best.

Chris suggested to export it slightly different.  Include sys/cygwin.h
and call

  cygwin_internal (CW_EXTRACT_DOMAIN_AND_USER, pw, domain, user);

instead of

  cygwin_extract_nt_dom_user (pw, domain, user);

Advantage: If passwd is running under an older Cygwin DLL, the
cygwin_internal() call just returns -1 and passwd can handle that
case cleanly while the other way would pop up a box, telling that
the procedure entry point couldn't be found.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                      
Red Hat, Inc.

More information about the Cygwin-patches mailing list