From 442cbe8a73023f6f5311ba6757d86cfd67425b9b Mon Sep 17 00:00:00 2001 From: jpandre Date: Tue, 30 Oct 2007 08:54:31 +0000 Subject: [PATCH] Fixed header after merging security attributes --- libntfs-3g/security.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libntfs-3g/security.c b/libntfs-3g/security.c index a0b653ed..98c08bd7 100644 --- a/libntfs-3g/security.c +++ b/libntfs-3g/security.c @@ -4443,6 +4443,8 @@ static BOOL mergesecurityattr(ntfs_volume *vol, const char *oldattr, pos += size; } else targhead->group = cpu_to_le32(0); + targhead->revision = SECURITY_DESCRIPTOR_REVISION; + targhead->alignment = 0; targhead->control = cpu_to_le16(present | selection); ok = !update_secur_descr(vol, target, ni); free(target);