diff --git a/src/lowntfs-3g.c b/src/lowntfs-3g.c index 7a8213c8..04a239c5 100644 --- a/src/lowntfs-3g.c +++ b/src/lowntfs-3g.c @@ -4026,6 +4026,7 @@ int main(int argc, char *argv[]) if (!ntfs_build_mapping(&ctx->security,ctx->usermap_path, (ctx->vol->secure_flags & ((1 << SECURITY_DEFAULT) | (1 << SECURITY_ACL))) + && !ctx->inherit && !(ctx->vol->secure_flags & (1 << SECURITY_WANTED)))) { #if POSIXACLS /* use basic permissions if requested */ diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index aedb56b6..558d2577 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -3872,6 +3872,7 @@ int main(int argc, char *argv[]) if (!ntfs_build_mapping(&ctx->security,ctx->usermap_path, (ctx->vol->secure_flags & ((1 << SECURITY_DEFAULT) | (1 << SECURITY_ACL))) + && !ctx->inherit && !(ctx->vol->secure_flags & (1 << SECURITY_WANTED)))) { #if POSIXACLS /* use basic permissions if requested */