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:
Jean-Pierre André 2014-09-02 09:50:27 +02:00
parent b6152757c5
commit c358191f91

View File

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