]> git.ipfire.org Git - thirdparty/util-linux.git/commit
mount: don't remount read-only on --bind
authorKarel Zak <kzak@redhat.com>
Fri, 20 Mar 2015 11:42:33 +0000 (12:42 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 20 Mar 2015 11:42:33 +0000 (12:42 +0100)
commit8b5b94685b7f91c61ff1abeaa8e7089226d2bf35
tree468307fb92480549b49bd31f287f27fa1cb2b4d3
parent172d6eed1b0c6c278f9d60bd5d3076fcaf6c1376
mount: don't remount read-only on --bind

mount(8) tries to mount read-only when the previous attempt ends with
EROFS or EACCES. This is bad idea for bind mounts as "ro,bind" has
a special semantic.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/mount.c