Do not leave core files on "umkpasswd --help".
authorMichael Poole <mdpoole@troilus.org>
Sat, 17 Mar 2007 14:31:39 +0000 (14:31 +0000)
committerMichael Poole <mdpoole@troilus.org>
Sat, 17 Mar 2007 14:31:39 +0000 (14:31 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1778 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/umkpasswd.c

index 5aa150b8781a2e677f177fa6166f634ae8c431ea..d8bd643b73130bdb930b2fdfd8cbc38d197bbf5b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-03-17  Michael Poole <mdpoole@troilus.org>
+
+       * 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 <mdpoole@troilus.org>
 
        * doc/example.conf (Class): Move the "Recommended client classes"
index 27668bfea9e89d2efc8796f4f037eba5cca31d84..d3ef4e5b2fa9e400963109f756ad6fe534628447 100644 (file)
@@ -400,7 +400,7 @@ const char* options = "a:d:lm:u:y:5:";
    default:
     /* unknown option - spit out syntax and b0rk */
     show_help();
-    abort();
+    exit(1);
    break;
   }
  }