From a103d64da560d4839ce71577e74f195d5fa7f077 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 7 Dec 2004 15:13:35 +0000 Subject: Fix exports. --- sys/isofs/cd9660/cd9660_vfsops.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'sys/isofs/cd9660') 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 -- cgit v1.1