diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-01-08 20:46:19 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-01-08 20:46:19 +0000 |
commit | d2a88ab3b0308a674c3609dab5a1c649a213d4b6 (patch) | |
tree | d0e77f8b1cbad2e44b96cb1ce687214f82ea74e4 /usr.sbin/relayd/control.c | |
parent | 051775e7c079472efd1c6ab240f54f6e71f75d42 (diff) |
do NOT use the regexp interface. it is way to complicated, error-prone
and we don't know about all the possible security problems.
change the check send/expect code to use the fnmatch(3) interface
using shell globbing rules instead. this allows simple patterns like
"220 * ESMTP*" or "SSH-[12].??-*".
suggested by deraadt@ and otto@
ok Pierre-Yves Ritschard (pyr at spootnik dot org)
Diffstat (limited to 'usr.sbin/relayd/control.c')
-rw-r--r-- | usr.sbin/relayd/control.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/relayd/control.c b/usr.sbin/relayd/control.c index 1266b9fd21f..2368ce43e27 100644 --- a/usr.sbin/relayd/control.c +++ b/usr.sbin/relayd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.5 2007/01/08 13:37:26 reyk Exp $ */ +/* $OpenBSD: control.c,v 1.6 2007/01/08 20:46:18 reyk Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -30,7 +30,6 @@ #include <string.h> #include <unistd.h> #include <signal.h> -#include <regex.h> #include "hostated.h" |