Files
bpfire/src/patches/smartmontools-6.5-exit_segfault.patch
Matthias Fischer 53aad60d6f smartmontools: Update to 6.5
For details, see:
https://www.smartmontools.org/browser/tags/RELEASE_6_5/smartmontools/NEWS

Best,
Matthias

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-08-21 21:50:42 -04:00

17 lines
518 B
Diff

--- a/utility.h Sun Apr 24 16:59:15 2016
+++ b/utility.h Sat Aug 20 22:40:33 2016
@@ -97,7 +97,11 @@
// Replacement for exit(status)
// (exit is not compatible with C++ destructors)
-#define EXIT(status) { throw (int)(status); }
+
+//This doesn't work on IPFire.
+//#define EXIT(status) { throw (int)(status); }
+//tried to use exit and found no problems yet
+#define EXIT(status) { exit ((int)(status)); }
// Compile time check of byte ordering
// (inline const function allows compiler to remove dead code)