This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
RE: patch to mkpasswd.c - allows selection of specific user
- To: "'cygwin-patches at cygwin dot com'" <cygwin-patches at cygwin dot com>
- Subject: RE: patch to mkpasswd.c - allows selection of specific user
- From: Mathew Boorman <mathew dot boorman at au dot cmg dot com>
- Date: Tue, 13 Nov 2001 16:02:32 +1100
Darn, now I'm told about Marks patch!
Anyway, onward...
Mark Bradshaw:
>@@ -135,6 +145,7 @@ enum_users (LPWSTR servername, int print
> default:
> fprintf (stderr, "NetUserEnum() failed with %ld\n", rc);
>+ if ( rc == 2221 ) printf("That user doesn't appear to exist.\n");
The appropriate error codes are in <lmerr.h> around, I noted some were
slightly different in name though.
I believe this message should go to stderr anyway, otherwise you would end
up with a polluted /etc/passwd file.
m@