Rob Shearman : server: Fix a typo in the enumeration of the ACE' s in sd_to_mode.

Alexandre Julliard julliard at winehq.org
Tue Nov 20 10:54:57 CST 2007


Module: wine
Branch: master
Commit: 6753fdc3b739b30749b29360d274fb623c6d29c9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6753fdc3b739b30749b29360d274fb623c6d29c9

Author: Rob Shearman <rob at codeweavers.com>
Date:   Tue Nov 20 10:47:11 2007 +0000

server: Fix a typo in the enumeration of the ACE's in sd_to_mode.

This caused only the first ACE to be examined, causing permissions to 
always be set to ----???---.

---

 server/file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/file.c b/server/file.c
index 7f34c02..58973c0 100644
--- a/server/file.c
+++ b/server/file.c
@@ -421,7 +421,7 @@ static mode_t sd_to_mode( const struct security_descriptor *sd, const SID *owner
     {
         const ACE_HEADER *ace = (const ACE_HEADER *)(dacl + 1);
         ULONG i;
-        for (i = 0; i < dacl->AceCount; i++, ace_next( ace ))
+        for (i = 0; i < dacl->AceCount; i++, ace = ace_next( ace ))
         {
             const ACCESS_ALLOWED_ACE *aa_ace;
             const ACCESS_DENIED_ACE *ad_ace;




More information about the wine-cvs mailing list