summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/fs/cd9660/cd9660_vfsops.c3
-rw-r--r--sys/isofs/cd9660/cd9660_vfsops.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/fs/cd9660/cd9660_vfsops.c b/sys/fs/cd9660/cd9660_vfsops.c
index c25d4bb..a44df4c 100644
--- a/sys/fs/cd9660/cd9660_vfsops.c
+++ b/sys/fs/cd9660/cd9660_vfsops.c
@@ -196,9 +196,8 @@ cd9660_mount(mp, path, data, ndp, td)
mode_t accessmode;
struct iso_mnt *imp = 0;
- if ((mp->mnt_flag & MNT_ROOTFS) != 0) {
+ if (path == NULL) /* We are doing the initial root mount */
return (iso_mountroot(mp, td));
- }
if ((error = copyin(data, (caddr_t)&args, sizeof (struct iso_args))))
return (error);
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c
index c25d4bb..a44df4c 100644
--- a/sys/isofs/cd9660/cd9660_vfsops.c
+++ b/sys/isofs/cd9660/cd9660_vfsops.c
@@ -196,9 +196,8 @@ cd9660_mount(mp, path, data, ndp, td)
mode_t accessmode;
struct iso_mnt *imp = 0;
- if ((mp->mnt_flag & MNT_ROOTFS) != 0) {
+ if (path == NULL) /* We are doing the initial root mount */
return (iso_mountroot(mp, td));
- }
if ((error = copyin(data, (caddr_t)&args, sizeof (struct iso_args))))
return (error);
OpenPOWER on IntegriCloud