From 464a9156cdcbe914d68afde96928e05494151ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Mon, 18 Jun 2012 12:26:36 +0200 Subject: [PATCH] Fixed a wrong computation of ACL size (minor issue) --- libntfs-3g/security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libntfs-3g/security.c b/libntfs-3g/security.c index 0c676b66..a78663ba 100644 --- a/libntfs-3g/security.c +++ b/libntfs-3g/security.c @@ -3804,7 +3804,7 @@ static le32 build_inherited_id(struct SECURITY_CONTEXT *scx, */ memcpy(&newattr[pos],gsid,gsidsz); pnhead->group = cpu_to_le32(pos); - pos += usidsz; + pos += gsidsz; securid = setsecurityattr(scx->vol, (SECURITY_DESCRIPTOR_RELATIVE*)newattr, pos); free(newattr);