Minor mkpasswd patch

Jason Tishler jason@tishler.net
Sun Nov 4 11:59:00 GMT 2001


The attached fixes a SEGV caused by using the '-p' option:

    $ mkpasswd -d -u jtishler -p /home/jtishler

Jason
-------------- next part --------------
Index: mkpasswd.c
===================================================================
RCS file: /cvs/src/src/winsup/utils/mkpasswd.c,v
retrieving revision 1.16
diff -u -p -r1.16 mkpasswd.c
--- mkpasswd.c	2001/11/21 10:39:43	1.16
+++ mkpasswd.c	2001/12/14 17:00:52
@@ -415,7 +415,7 @@ struct option longopts[] = {
   {0, no_argument, NULL, 0}
 };
 
-char opts[] = "ldo:gsmhpu:";
+char opts[] = "ldo:gsmhp:u:";
 
 int
 main (int argc, char **argv)
-------------- next part --------------
Fri Dec 14 12:10:39 2001  Jason Tishler <jason@tishler.net>

	* mkpasswd.c (opts): Add indication that '-p' option requires an
	argument.



More information about the Cygwin-patches mailing list