diff options
author | phk <phk@FreeBSD.org> | 2004-12-07 15:13:35 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-12-07 15:13:35 +0000 |
commit | a103d64da560d4839ce71577e74f195d5fa7f077 (patch) | |
tree | 21d987297f5f41b2244d44a2907dc6bad3a6c62b /sys/isofs | |
parent | 8bef9a211af27a1ed2a67904a4d563fb681fce22 (diff) | |
download | FreeBSD-src-a103d64da560d4839ce71577e74f195d5fa7f077.zip FreeBSD-src-a103d64da560d4839ce71577e74f195d5fa7f077.tar.gz |
Fix exports.
Diffstat (limited to 'sys/isofs')
-rw-r--r-- | sys/isofs/cd9660/cd9660_vfsops.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c index 865a2e5..c944b5a 100644 --- a/sys/isofs/cd9660/cd9660_vfsops.c +++ b/sys/isofs/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 |