diff options
author | James Peach <jpeach@samba.org> | 2006-03-11 10:59:03 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:16 -0500 |
commit | a62c0925e8b38e491fef7967fdca076895152d7e (patch) | |
tree | 73a8f88eda33b68606844843ae6e94c6b8cf1ef9 /source3/smbd | |
parent | a156d128f2bd5ea8ff9c1b5a4927ad3b82956fa8 (diff) | |
download | samba-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.c | 6 |
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); } |