From 02e199978b0af3a2cb7b5929bceaf19127ea95eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Mon, 17 May 2021 15:37:45 +0300 Subject: [PATCH] Fixed initialization of a Posix ACL A posix ACL record was not fully initialized. --- libntfs-3g/acls.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libntfs-3g/acls.c b/libntfs-3g/acls.c index 9df71083..9f16fecd 100644 --- a/libntfs-3g/acls.c +++ b/libntfs-3g/acls.c @@ -1330,6 +1330,10 @@ struct POSIX_SECURITY *ntfs_build_basic_posix( pydesc->acccnt = 3; pydesc->defcnt = 0; pydesc->firstdef = 6; + pydesc->filler = 0; + pydesc->acl.version = POSIX_VERSION; + pydesc->acl.flags = 0; + pydesc->acl.filler = 0; } else errno = ENOMEM; return (pydesc);