From cdd1d58159140759052ec043bc9828d94ba97bc7 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Mon, 6 Jul 2015 17:15:44 +0100 Subject: mingw: Fix NO_LOCAL_CLIENT_CRED build Commit 4b4b9086 "os: support new implicit local user access mode [CVE-2015-3164 2/3]" carefully places the relevant code it adds under !NO_LOCAL_CLIENT_CRED, but unfortunately doesn't notice that NO_LOCAL_CLIENT_CRED is defined as a side-effect in the middle of GetLocalClientCreds(), so many of these checks precede its definition. Move the check if NO_LOCAL_CLIENT_CRED should be defined to configure.ac, so it always occurs before it's first use. v2: Move check to configure.ac v3: Use AC_CACHE_CHECK and name cache varaible appropriately [ajax: Massaged commit message] Signed-off-by: Jon TURNEY Reviewed-by: Ray Strode --- os/access.c | 1 - 1 file changed, 1 deletion(-) (limited to 'os') diff --git a/os/access.c b/os/access.c index 75e7a6983..54f069024 100644 --- a/os/access.c +++ b/os/access.c @@ -1221,7 +1221,6 @@ GetLocalClientCreds(ClientPtr client, LocalClientCredRec ** lccp) #endif #else /* No system call available to get the credentials of the peer */ -#define NO_LOCAL_CLIENT_CRED return -1; #endif } -- cgit v1.2.3