summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-09-12 21:40:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:06 -0500
commitf642fd96d0b196e7bb71bb73ffbefac32786d25f (patch)
treebf37a3bb91851ea2a9d2f8c9506f7c4c0cb37c5c /source4
parent74eea860bae3733b39c4e6767abf350d33a406c8 (diff)
downloadsamba-f642fd96d0b196e7bb71bb73ffbefac32786d25f.tar.gz
samba-f642fd96d0b196e7bb71bb73ffbefac32786d25f.tar.bz2
samba-f642fd96d0b196e7bb71bb73ffbefac32786d25f.zip
r10185: Fix another two sets of unhandled enumeration warnings, plus correct some awful indentation. (-:
(This used to be commit 2f24fc7a7a195c04f88a25d52efc02ddf491126c)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/security/access_check.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/source4/libcli/security/access_check.c b/source4/libcli/security/access_check.c
index c10751abce..0ffca1ade8 100644
--- a/source4/libcli/security/access_check.c
+++ b/source4/libcli/security/access_check.c
@@ -67,13 +67,15 @@ static uint32_t access_check_max_allowed(const struct security_descriptor *sd,
}
switch (ace->type) {
- case SEC_ACE_TYPE_ACCESS_ALLOWED:
- granted |= ace->access_mask;
- break;
- case SEC_ACE_TYPE_ACCESS_DENIED:
- case SEC_ACE_TYPE_ACCESS_DENIED_OBJECT:
- denied |= ace->access_mask;
- break;
+ case SEC_ACE_TYPE_ACCESS_ALLOWED:
+ granted |= ace->access_mask;
+ break;
+ case SEC_ACE_TYPE_ACCESS_DENIED:
+ case SEC_ACE_TYPE_ACCESS_DENIED_OBJECT:
+ denied |= ace->access_mask;
+ break;
+ default: /* Other ACE types not handled/supported */
+ break;
}
}
@@ -153,6 +155,8 @@ NTSTATUS sec_access_check(const struct security_descriptor *sd,
return NT_STATUS_ACCESS_DENIED;
}
break;
+ default: /* Other ACE types not handled/supported */
+ break;
}
}