From 5f914d0492126621bf8b29a7806c84232bce06a1 Mon Sep 17 00:00:00 2001 From: jpandre Date: Wed, 17 Oct 2007 12:17:51 +0000 Subject: [PATCH] Padded end of $SDH entries with 0x490049 like Windows (purpose unknown) --- libntfs-3g/security.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libntfs-3g/security.c b/libntfs-3g/security.c index 17983cb6..bd6fc0b1 100644 --- a/libntfs-3g/security.c +++ b/libntfs-3g/security.c @@ -911,7 +911,8 @@ static int entersecurity_indexes(ntfs_volume *vol, s64 attrsz, newsdh.dataoffsl = realign.parts.dataoffsl; newsdh.datasize = cpu_to_le32(attrsz + sizeof(SECURITY_DESCRIPTOR_HEADER)); - newsdh.fill3 = cpu_to_le32(0); + /* special filler value... */ + newsdh.fill3 = cpu_to_le32(0x00490049); if (!ntfs_ie_add(xsdh,(INDEX_ENTRY*)&newsdh)) res = 0; }