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
parent
e8c43f434b
commit
0ccd90f2fb
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue