summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/vfs_mount.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index bce3da1..d2e823e5 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -524,8 +524,7 @@ mount(td, uap)
int error;
/* Kick out MNT_ROOTFS early as it is legal internally */
- if (uap->flags & MNT_ROOTFS)
- return (EINVAL);
+ uap->flags &= ~MNT_ROOTFS;
fstype = malloc(MFSNAMELEN, M_TEMP, M_WAITOK);
OpenPOWER on IntegriCloud