diff options
author | kris <kris@FreeBSD.org> | 2003-03-16 08:31:55 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2003-03-16 08:31:55 +0800 |
commit | fbb8c3e25ac1c88cd195f6fc87eb29bee0caaed5 (patch) | |
tree | 1db98b24d7d587e602950746903c2eb564523d2e | |
parent | 685c3fd491559e3cb88e38398c25249972eefd00 (diff) | |
download | freebsd-ports-gnome-fbb8c3e25ac1c88cd195f6fc87eb29bee0caaed5.tar.gz freebsd-ports-gnome-fbb8c3e25ac1c88cd195f6fc87eb29bee0caaed5.tar.zst freebsd-ports-gnome-fbb8c3e25ac1c88cd195f6fc87eb29bee0caaed5.zip |
Add a patch to fix runtime problems when snort is built with -DWITH_MYSQL
Submitted by: Mike Harding <mvh@ix.netcom.com>
Obtained from: snort CVS
-rw-r--r-- | security/snort/files/patch-snort.c | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/security/snort/files/patch-snort.c b/security/snort/files/patch-snort.c index 0cf8de8354d4..a563db650a4e 100644 --- a/security/snort/files/patch-snort.c +++ b/security/snort/files/patch-snort.c @@ -1,11 +1,36 @@ ---- src/snort.c.orig Sun Oct 6 02:14:32 2002 -+++ src/snort.c Sun Oct 6 02:14:18 2002 -@@ -2193,7 +2193,7 @@ +--- src/snort.c.orig Fri Mar 14 19:58:33 2003 ++++ src/snort.c Fri Mar 14 19:58:19 2003 +@@ -1,4 +1,4 @@ +-/* $Id: snort.c,v 1.157.2.7 2003/02/19 21:16:50 chris_reid Exp $ */ ++/* $Id: snort.c,v 1.157.2.9 2003/03/04 20:47:15 andrewbaker Exp $ */ + /* + ** Copyright (C) 1998-2002 Martin Roesch <roesch@sourcefire.com> + ** +@@ -252,6 +252,8 @@ + OpenPcap(pv.readfile, 0); + } + ++ InitOutputPlugins(); ++ + /* didn't get any conf data at the command line, try to find the default + * conf file + */ +@@ -310,9 +312,6 @@ + GoDaemon(); + } + +- /* initialize these here so we do not print unwanted messages */ +- InitOutputPlugins(); +- + /* + * creating a PID file before setting its proper + * path (in SanityChecks()) is not a good idea +@@ -2212,7 +2211,7 @@ struct stat st; int found; int i; - char *conf_files[]={"/etc/snort.conf", "./snort.conf", NULL}; -+ char *conf_files[]={"%%PREFIX%%/etc/snort.conf", "./snort.conf", NULL}; ++ char *conf_files[]={"/usr/local/etc/snort.conf", "./snort.conf", NULL}; char *fname = NULL; char *home_dir; char *tmp; |