summaryrefslogtreecommitdiff
path: root/os/access.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-01-12 12:09:59 -0800
committerKeith Packard <keithp@keithp.com>2012-01-12 12:09:59 -0800
commitd9eeede52f2d5ba9dd6368d988a5d2abb3b8b4e5 (patch)
tree328837e586a19414d8344e2ebc36580eaa1f8f59 /os/access.c
parent3be37375eed9eb9cfb9c42821deda4213af4057b (diff)
Revert "dix: Pull client-is-local flag up to the ClientRec"
This reverts commit 49d38b75c8f3276cfce33ffe6b8c4fbeb1081b96. ABI change pended for 1.13
Diffstat (limited to 'os/access.c')
-rw-r--r--os/access.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/os/access.c b/os/access.c
index ed13d0a0d..b609442de 100644
--- a/os/access.c
+++ b/os/access.c
@@ -1045,6 +1045,13 @@ ComputeLocalClient(ClientPtr client)
return FALSE;
}
+Bool LocalClient(ClientPtr client)
+{
+ if (!client->osPrivate)
+ return FALSE;
+ return ((OsCommPtr)client->osPrivate)->local_client;
+}
+
/*
* Return the uid and gid of a connected local client
*
@@ -1202,7 +1209,7 @@ AuthorizedClient(ClientPtr client)
if (rc != Success)
return rc;
- return client->local ? Success : BadAccess;
+ return LocalClient(client) ? Success : BadAccess;
}
/* Add a host to the access control list. This is the external interface