summaryrefslogtreecommitdiffstats
path: root/sys/fs/cd9660
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-11-09 22:21:52 +0000
committerphk <phk@FreeBSD.org>2004-11-09 22:21:52 +0000
commit5eae02ee768f29a7e1870dd3077e3035bd7198a3 (patch)
tree4e88184008674f369af359880adf177d32de4950 /sys/fs/cd9660
parent37ad4f1923f750790407861ce00a1e96c5f1b0be (diff)
downloadFreeBSD-src-5eae02ee768f29a7e1870dd3077e3035bd7198a3.zip
FreeBSD-src-5eae02ee768f29a7e1870dd3077e3035bd7198a3.tar.gz
Detect root mount attempts on the flag, not on the NULL path.
Diffstat (limited to 'sys/fs/cd9660')
-rw-r--r--sys/fs/cd9660/cd9660_vfsops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/cd9660/cd9660_vfsops.c b/sys/fs/cd9660/cd9660_vfsops.c
index e998f61..9500695 100644
--- a/sys/fs/cd9660/cd9660_vfsops.c
+++ b/sys/fs/cd9660/cd9660_vfsops.c
@@ -201,7 +201,7 @@ cd9660_omount(mp, path, data, td)
struct iso_mnt *imp = 0;
struct nameidata ndp;
- if (path == NULL) /* We are doing the initial root mount */
+ if (mp->mnt_flag & MNT_ROOTFS)
return (iso_mountroot(mp, td));
if ((error = copyin(data, (caddr_t)&args, sizeof (struct iso_args))))
return (error);
OpenPOWER on IntegriCloud