Fixed ignoring the umask mount option when permissions are used

When permissions are used, umask(2) is supposed to be active and the
umask mount option is supposed to be ignored, but it was still wrongly
applied. This caused permission restrictions when an external disk was
automatically mounted with standard options.
edge.strict_endians
Jean-Pierre André 2014-05-22 09:45:46 +02:00
parent e8c43f434b
commit 0ccd90f2fb
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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;