summaryrefslogtreecommitdiff
path: root/os/access.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2012-09-20 13:16:59 -0400
committerAdam Jackson <ajax@redhat.com>2012-09-20 14:36:39 -0400
commitff8e3ad8074cd2c8bed49b39c40c2b4892118270 (patch)
tree6c96454a127d1b1a842d4e3a07040421f114fb5b /os/access.c
parent3f7bc222638d5d38324ecbc8c2c4e39af17d110e (diff)
dix: Pull client-is-local flag up to the ClientRec
Reviewed-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'os/access.c')
-rw-r--r--os/access.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/os/access.c b/os/access.c
index 550f2ed8c..104b6a713 100644
--- a/os/access.c
+++ b/os/access.c
@@ -1007,14 +1007,6 @@ 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
*
@@ -1176,7 +1168,7 @@ AuthorizedClient(ClientPtr client)
if (rc != Success)
return rc;
- return LocalClient(client) ? Success : BadAccess;
+ return client->local ? Success : BadAccess;
}
/* Add a host to the access control list. This is the external interface