This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: [PATCH] mkpasswd.c - allows selection of specific user
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-patches at cygwin dot com
- Date: Mon, 3 Dec 2001 23:22:54 -0500
- Subject: Re: [PATCH] mkpasswd.c - allows selection of specific user
- References: <911C684A29ACD311921800508B7293BA037D2827@cnmail>
- Reply-to: cygwin-patches at cygwin dot com
On Mon, Dec 03, 2001 at 09:24:47PM -0500, Mark Bradshaw wrote:
>It just occurred to me that the patch I submitted for mkpasswd.c causes one
>of its error messages to be a bit misleading. If you ask mkpasswd for a
>user that doesn't exist it will say:
>"NetUserEnum() failed with error 2221.
>That user doesn't exist."
>
>While the error number is correct, and the explanation on the second line is
>right, it's not actually NetUserEnum that's been called to determine that.
>I don't know if you care about this, but maybe the following patch could be
>thrown in to make that error a bit more generic (and correct).
I agree that the user doesn't have to know about NetUserEnum but the
error message should be something like "mkpasswd: user doesn't exist".
Some of the messages are like this already. Are you interested in
genercizing the rest of the mkpasswd warnings?
cgf
>===============================
>
>2001-12-03 Mark Bradshaw <bradshaw@staff.crosswalk.com>
>
> * mkpasswd.c: (enum_users): Fix an error message.
>
>===============================