Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-03-17 14:31:49 UTC

Modified files:
  Tag: u2_10_12_branch
     ircd/umkpasswd.c ChangeLog

Log message:

Do not leave core files on "umkpasswd --help".

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.158 ircu2.10/ChangeLog:1.710.2.159
--- ircu2.10/ChangeLog:1.710.2.158      Sat Mar 17 07:29:01 2007
+++ ircu2.10/ChangeLog  Sat Mar 17 07:31:39 2007
@@ -1,3 +1,9 @@
+2007-03-17  Michael Poole <[EMAIL PROTECTED]>
+
+       * ircd/umkpasswd.c (parse_arguments): Exit cleanly rather than
+       aborting on unrecognized arguments.  It isn't nice to core on
+       "umkpasswd --help"..
+
 2007-03-16  Michael Poole <[EMAIL PROTECTED]>
 
        * doc/example.conf (Class): Move the "Recommended client classes"
Index: ircu2.10/ircd/umkpasswd.c
diff -u ircu2.10/ircd/umkpasswd.c:1.8 ircu2.10/ircd/umkpasswd.c:1.8.2.1
--- ircu2.10/ircd/umkpasswd.c:1.8       Tue May 10 21:15:04 2005
+++ ircu2.10/ircd/umkpasswd.c   Sat Mar 17 07:31:39 2007
@@ -16,7 +16,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: umkpasswd.c,v 1.8 2005/05/11 04:15:04 entrope Exp $
+ * $Id: umkpasswd.c,v 1.8.2.1 2007/03/17 14:31:39 entrope Exp $
 */
 #include "config.h"
 #include <unistd.h>
@@ -400,7 +400,7 @@
    default:
     /* unknown option - spit out syntax and b0rk */
     show_help();
-    abort();
+    exit(1);
    break;
   }
  }
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to