summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2006-03-11 10:59:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:16 -0500
commita62c0925e8b38e491fef7967fdca076895152d7e (patch)
tree73a8f88eda33b68606844843ae6e94c6b8cf1ef9 /source3/smbd
parenta156d128f2bd5ea8ff9c1b5a4927ad3b82956fa8 (diff)
downloadsamba-a62c0925e8b38e491fef7967fdca076895152d7e.tar.gz
samba-a62c0925e8b38e491fef7967fdca076895152d7e.tar.bz2
samba-a62c0925e8b38e491fef7967fdca076895152d7e.zip
r14207: Convert the lp_acl_compatibility() param into an enum.
(This used to be commit 5429c495c538e416010cf44e1d6fb771770a72ae)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/posix_acls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c
index 9e513580c3..5356d962a2 100644
--- a/source3/smbd/posix_acls.c
+++ b/source3/smbd/posix_acls.c
@@ -783,15 +783,15 @@ static void merge_aces( canon_ace **pp_list_head )
static BOOL nt4_compatible_acls(void)
{
- const char *compat = lp_acl_compatibility();
+ int compat = lp_acl_compatibility();
- if (*compat == '\0') {
+ if (compat == ACL_COMPAT_AUTO) {
enum remote_arch_types ra_type = get_remote_arch();
/* Automatically adapt to client */
return (ra_type <= RA_WINNT);
} else
- return (strequal(compat, "winnt"));
+ return (compat == ACL_COMPAT_WINNT);
}