[PATCH] Fix linux build. Has_high_integrity is only implemented for windows

Wald Commits scm-commit at wald.intevation.org
Thu Sep 4 11:59:04 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1409824741 -7200
# Node ID 1f23803e1f8366376023669d197ce6254f2f5d9c
# Parent  76cae27b5d83e9d9d9b96fce7b86f646d0863b0f
Fix linux build. Has_high_integrity is only implemented for windows.

diff -r 76cae27b5d83 -r 1f23803e1f83 common/util.c
--- a/common/util.c	Thu Sep 04 11:11:36 2014 +0200
+++ b/common/util.c	Thu Sep 04 11:59:01 2014 +0200
@@ -405,6 +405,7 @@
 }
 #endif
 
+#ifdef WIN32
 bool
 has_high_integrity(HANDLE hToken)
 {
@@ -449,6 +450,7 @@
 
   return integrity_level >= SECURITY_MANDATORY_HIGH_RID;
 }
+#endif
 
 bool
 is_elevated()


More information about the Trustbridge-commits mailing list