diff ui/main.cpp @ 939:574cd1fae1dc

Only do selftest on Windows
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 22 Aug 2014 19:55:08 +0200
parents 59fc7ececa5f
children 561cc777e0b6
line wrap: on
line diff
--- a/ui/main.cpp	Fri Aug 22 19:16:31 2014 +0200
+++ b/ui/main.cpp	Fri Aug 22 19:55:08 2014 +0200
@@ -54,13 +54,21 @@
 
 int main(int argc, char **argv)
 {
-    /* First verify integrity even before calling QApplication*/
+#ifdef WIN32
+    /* First verify integrity even before calling QApplication.
+     * We only do this on Windows as we have a PKCS#7 embedded
+     * signature there which we check with OS methods.
+     *
+     * On GNU/Linux platforms you should use an IDS system to
+     * monitor executable corruptions.
+     */
     if (!selftest()) {
         syslog_error_printf ("Integrity check failed.");
 #ifdef RELEASE_BUILD
         return -1;
 #endif
     }
+#endif
 
     QApplication app (argc, argv);
 

http://wald.intevation.org/projects/trustbridge/