diff options
author | Nicolas Thill <nico@openwrt.org> | 2005-04-18 06:41:36 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2005-04-18 06:41:36 +0000 |
commit | 648a09ca7bcad8fdf00b4b1ce98ff8665da8973b (patch) | |
tree | 859200a23e89215ee4c3b8ecb8dbcc22904899c9 /package/snort/patches/500-no-config-search.patch | |
parent | 9754608d276f762213bf86170f13e44aa69c7f93 (diff) | |
download | master-187ad058-648a09ca7bcad8fdf00b4b1ce98ff8665da8973b.tar.gz master-187ad058-648a09ca7bcad8fdf00b4b1ce98ff8665da8973b.tar.bz2 master-187ad058-648a09ca7bcad8fdf00b4b1ce98ff8665da8973b.zip |
Add snort package, with experimental -custom package for build-time package customizations
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@667 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/snort/patches/500-no-config-search.patch')
-rw-r--r-- | package/snort/patches/500-no-config-search.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/package/snort/patches/500-no-config-search.patch b/package/snort/patches/500-no-config-search.patch new file mode 100644 index 0000000000..d674ba66aa --- /dev/null +++ b/package/snort/patches/500-no-config-search.patch @@ -0,0 +1,35 @@ +--- snort-2.3.2-orig/src/snort.c 2005-01-13 21:36:20.000000000 +0100 ++++ snort-2.3.2-1/src/snort.c 2005-04-04 20:03:34.000000000 +0200 +@@ -1949,7 +1949,7 @@ + { + struct stat st; + int i; +- char *conf_files[]={"/etc/snort.conf", "./snort.conf", NULL}; ++ char *conf_files[]={"/etc/snort/snort.conf", NULL}; + char *fname = NULL; + char *home_dir = NULL; + char *rval = NULL; +@@ -1970,23 +1970,6 @@ + i++; + } + +- /* search for .snortrc in the HOMEDIR */ +- if(!rval) +- { +- if((home_dir = getenv("HOME"))) +- { +- /* create the full path */ +- fname = (char *)malloc(strlen(home_dir) + strlen("/.snortrc") + 1); +- if(!fname) +- FatalError("Out of memory searching for config file\n"); +- +- if(stat(fname, &st) != -1) +- rval = fname; +- else +- free(fname); +- } +- } +- + return rval; + } + |