[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cygwin-patches
Subject:    Minor mkpasswd patch
From:       Jason Tishler <jason () tishler ! net>
Date:       2001-12-14 17:16:58
[Download RAW message or body]

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

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

Jason

["mkpasswd.c.diff" (text/plain)]

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)

["mkpasswd.c.ChangeLog" (text/plain)]

Fri Dec 14 12:10:39 2001  Jason Tishler <jason@tishler.net>

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



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic