0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-01 01:28:54 +02:00

cap: don't show orphaned capabilities

This commit is contained in:
William Pitcock 2016-02-28 19:15:13 -06:00
parent 2e4bf32f36
commit 455d2750fc

View file

@ -64,6 +64,10 @@ clicap_visible(const struct CapabilityEntry *cap)
{
struct ClientCapability *clicap;
/* orphaned caps shouldn't be visible */
if (cap->flags & CAP_ORPHANED)
return 0;
if (cap->ownerdata == NULL)
return 1;