From d49a557167498493f981a5fe26b9d5ccaabbcc74 Mon Sep 17 00:00:00 2001 From: jpandre Date: Sun, 2 Dec 2007 20:22:22 +0000 Subject: [PATCH] Fixed recognition of alternate world SID --- libntfs-3g/security.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libntfs-3g/security.c b/libntfs-3g/security.c index 08b37b2b..0a5cff16 100644 --- a/libntfs-3g/security.c +++ b/libntfs-3g/security.c @@ -2638,8 +2638,8 @@ static int is_world_sid(const SID * usid) || ((usid->sub_authority_count == 2) && (usid->identifier_authority.high_part == cpu_to_be32(0)) && (usid->identifier_authority.low_part == cpu_to_be32(5)) - && (usid->sub_authority[0] == 32) - && (usid->sub_authority[0] == 545)) + && (usid->sub_authority[0] == cpu_to_le32(32)) + && (usid->sub_authority[1] == cpu_to_le32(545))) ); }