mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +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);
|
||||
if (want_permissions)
|
||||
ctx->secure_flags |= (1 << SECURITY_WANTED);
|
||||
if (ctx->ro)
|
||||
if (ctx->ro) {
|
||||
ctx->secure_flags &= ~(1 << SECURITY_ADDSECURIDS);
|
||||
ctx->hiberfile = FALSE;
|
||||
}
|
||||
exit:
|
||||
free(options);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user