patch to mkpasswd.c - allows selection of specific user

Mathew Boorman mathew.boorman@au.cmg.com
Sun Oct 7 05:22:00 GMT 2001


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@



More information about the Cygwin-patches mailing list