From 3a5833c0ad5e81bf0096a1405395afd94854f36d Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Sat, 17 Mar 2007 14:31:39 +0000 Subject: [PATCH] Do not leave core files on "umkpasswd --help". git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1778 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 6 ++++++ ircd/umkpasswd.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5aa150b..d8bd643 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-03-17 Michael Poole + + * 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 * doc/example.conf (Class): Move the "Recommended client classes" diff --git a/ircd/umkpasswd.c b/ircd/umkpasswd.c index 27668bf..d3ef4e5 100644 --- a/ircd/umkpasswd.c +++ b/ircd/umkpasswd.c @@ -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; } } -- 2.20.1