mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 18:14:24 +08:00
Disabled option remove_hiberfile on read-only mounts
The mount options remove_hiberfile and read-only are contradictory. When both are mentioned, ignore remove_hiberfile.
This commit is contained in:
parent
b6152757c5
commit
c358191f91
@ -531,8 +531,10 @@ char *parse_mount_options(ntfs_fuse_context_t *ctx,
|
|||||||
ctx->secure_flags |= (1 << SECURITY_ACL);
|
ctx->secure_flags |= (1 << SECURITY_ACL);
|
||||||
if (want_permissions)
|
if (want_permissions)
|
||||||
ctx->secure_flags |= (1 << SECURITY_WANTED);
|
ctx->secure_flags |= (1 << SECURITY_WANTED);
|
||||||
if (ctx->ro)
|
if (ctx->ro) {
|
||||||
ctx->secure_flags &= ~(1 << SECURITY_ADDSECURIDS);
|
ctx->secure_flags &= ~(1 << SECURITY_ADDSECURIDS);
|
||||||
|
ctx->hiberfile = FALSE;
|
||||||
|
}
|
||||||
exit:
|
exit:
|
||||||
free(options);
|
free(options);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user