Disabled the default user mapping when Windows inheritance is used
Windows-type inheritance is meaningful only when used with user identifications known to Windows, so avoid using default ones.edge.strict_endians
parent
19d71c6c9e
commit
ae4a797473
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue