]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/smartmontools-5.39-exit_segfault.patch
firewall: add more pscan matches and filter INVALID conntrack packages.
[ipfire-2.x.git] / src / patches / smartmontools-5.39-exit_segfault.patch
CommitLineData
c49fbacc
AF
1diff -Naur smartmontools-5.39-svn_r2877/utility.h smartmontools-5.39-svn_r2877.new/utility.h
2--- smartmontools-5.39-svn_r2877/utility.h 2009-08-24 12:48:50.000000000 +0200
3+++ smartmontools-5.39-svn_r2877.new/utility.h 2009-08-29 09:11:07.000000000 +0200
4@@ -102,7 +102,11 @@
5
6 // Replacement for exit(status)
7 // (exit is not compatible with C++ destructors)
8-#define EXIT(status) { throw (int)(status); }
9+
10+//This doesn't work on IPFire.
11+//#define EXIT(status) { throw (int)(status); }
12+//tried to use exit and found no problems yet
13+#define EXIT(status) { exit ((int)(status)); }
14
15
16 #ifdef OLD_INTERFACE