]> 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>
Wed, 29 Apr 2015 10:21:50 +0000 (12:21 +0200)
commit57c0ec30e94aee8a7d81983bb57c9a1393599a71
treea4fc1fb3bd69029bf78395015562e979787bfb6e
parent38db23fb36e783b190896e6382d36cdba7bca264
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