Skip to content

Commit 0a0d50f

Browse files
committed
libcomposefs: drop using "ro" option
MS_RDONLY is enough to mount the image as read-only. Signed-off-by: Giuseppe Scrivano <[email protected]>
1 parent 3a87868 commit 0a0d50f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcomposefs/lcfs-mount.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ static errint_t lcfs_mount_erofs(const char *source, const char *target,
580580
return -ENOTSUP;
581581

582582
res = mount(source, target, "erofs", MS_RDONLY,
583-
image_has_acls ? "ro" : "ro,noacl");
583+
image_has_acls ? NULL : "noacl");
584584
if (res < 0)
585585
return -errno;
586586

0 commit comments

Comments
 (0)