From deef8647c7f8f7ce286d92ff373812f9607b7375 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 20 Jun 2003 20:07:13 +0000 Subject: Fixed sorting algorithm to prevent problems with W2K clients. Jeremy. (This used to be commit fa8ca20ed440673d02ac5669f8d4c6623c1fdb6d) --- source3/smbd/posix_acls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c index 9f15bf1560..396b955843 100644 --- a/source3/smbd/posix_acls.c +++ b/source3/smbd/posix_acls.c @@ -2172,8 +2172,6 @@ static canon_ace *canonicalise_acl( files_struct *fsp, SMB_ACL_T posix_acl, SMB_ if (!ensure_canon_entry_valid(&list_head, fsp, powner, pgroup, psbuf, False)) goto fail; - arrange_posix_perms(fsp->fsp_name,&list_head ); - /* * Now go through the list, masking the permissions with the * acl_mask. Ensure all DENY Entries are at the start of the list. @@ -2197,6 +2195,8 @@ static canon_ace *canonicalise_acl( files_struct *fsp, SMB_ACL_T posix_acl, SMB_ } } + arrange_posix_perms(fsp->fsp_name,&list_head ); + print_canon_ace_list( "canonicalise_acl: ace entries after arrange", list_head ); return list_head; -- cgit