diff --git a/src/lowntfs-3g.c b/src/lowntfs-3g.c index 3cff727d..7a8213c8 100644 --- a/src/lowntfs-3g.c +++ b/src/lowntfs-3g.c @@ -4058,6 +4058,7 @@ int main(int argc, char *argv[]) } permissions_mode = "User mapping built"; #endif /* POSIXACLS */ + ctx->dmask = ctx->fmask = 0; } else { ctx->security.uid = ctx->uid; ctx->security.gid = ctx->gid; diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index bef29e1b..aedb56b6 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -3903,6 +3903,7 @@ int main(int argc, char *argv[]) #endif /* KERNELPERMS */ permissions_mode = "User mapping built"; #endif /* POSIXACLS */ + ctx->dmask = ctx->fmask = 0; } else { ctx->security.uid = ctx->uid; ctx->security.gid = ctx->gid;