]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r320803:
authortrasz <trasz@FreeBSD.org>
Wed, 4 Oct 2017 12:04:35 +0000 (12:04 +0000)
committertrasz <trasz@FreeBSD.org>
Wed, 4 Oct 2017 12:04:35 +0000 (12:04 +0000)
commitd242870974ab97017214a40adc7c0de074e34dd4
treeacc4b146164ff5e602d4450fa1189a9a81cfefd6
parent631a3022430df5cf60706cc29d508f6eb2858725
MFC r320803:

Fix "mount -uw /" when the filesystem type doesn't match.

This basically makes "mount -uw /" work when the filesystem
mounted on / is NFS, but the one configured in fstab(5) is UFS,
which can happen when you forget to modify fstab.

Note that the whole special case ("else if (argv[0][0] == '/'")
is probably not needed anyway.  I'll take a look at removing it
altogether; for now this is a minimally intrusive fix.
sbin/mount/mount.c