This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: patch to mkpasswd.c - allows selection of specific user


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@


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]