summaryrefslogtreecommitdiffstats
path: root/sys/fs/cd9660
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-12-07 15:13:35 +0000
committerphk <phk@FreeBSD.org>2004-12-07 15:13:35 +0000
commita103d64da560d4839ce71577e74f195d5fa7f077 (patch)
tree21d987297f5f41b2244d44a2907dc6bad3a6c62b /sys/fs/cd9660
parent8bef9a211af27a1ed2a67904a4d563fb681fce22 (diff)
downloadFreeBSD-src-a103d64da560d4839ce71577e74f195d5fa7f077.zip
FreeBSD-src-a103d64da560d4839ce71577e74f195d5fa7f077.tar.gz
Fix exports.
Diffstat (limited to 'sys/fs/cd9660')
-rw-r--r--sys/fs/cd9660/cd9660_vfsops.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/fs/cd9660/cd9660_vfsops.c b/sys/fs/cd9660/cd9660_vfsops.c
index 865a2e5..c944b5a 100644
--- a/sys/fs/cd9660/cd9660_vfsops.c
+++ b/sys/fs/cd9660/cd9660_vfsops.c
@@ -151,13 +151,11 @@ cd9660_mount(struct mount *mp, struct thread *td)
* read/write; if there is no device name, that's all we do.
*/
if (mp->mnt_flag & MNT_UPDATE) {
- if (fspec == NULL) {
- error = vfs_getopt(mp->mnt_optnew,
- "export", (void **)&export, &len);
- if (error || len != sizeof *export)
- return (EINVAL);
+ error = vfs_getopt(mp->mnt_optnew,
+ "export", (void **)&export, &len);
+ if (error == 0 && len == sizeof *export && export.ex_flags)
return (vfs_export(mp, export));
- }
+ }
}
/*
* Not an update, or updating the name: look up the name
OpenPOWER on IntegriCloud