summaryrefslogtreecommitdiffstats
path: root/contrib/smbfs
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2004-04-11 21:07:26 +0000
committermux <mux@FreeBSD.org>2004-04-11 21:07:26 +0000
commit3be170ff31da6d639dde240f22d99d7cc981d315 (patch)
treec759666692279c5473c2d08a34ece6ba64749ca3 /contrib/smbfs
parent157640c61616143baa0e66c5c08c52708c13a894 (diff)
downloadFreeBSD-src-3be170ff31da6d639dde240f22d99d7cc981d315.zip
FreeBSD-src-3be170ff31da6d639dde240f22d99d7cc981d315.tar.gz
Sync with other mount_*fs(8) utilities; we don't need to try to
load the smbfs module because the mount(2) syscall will do it if it's needed.
Diffstat (limited to 'contrib/smbfs')
-rw-r--r--contrib/smbfs/mount_smbfs/mount_smbfs.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/contrib/smbfs/mount_smbfs/mount_smbfs.c b/contrib/smbfs/mount_smbfs/mount_smbfs.c
index 64fe0bd..dee8711 100644
--- a/contrib/smbfs/mount_smbfs/mount_smbfs.c
+++ b/contrib/smbfs/mount_smbfs/mount_smbfs.c
@@ -75,16 +75,14 @@ main(int argc, char *argv[])
#ifdef APPLE
extern void dropsuid();
extern int loadsmbvfs();
-#else
- struct xvfsconf vfc;
-#endif /* APPLE */
+#endif
char *next;
int opt, error, mntflags, caseopt;
#ifdef APPLE
dropsuid();
-#endif /* APPLE */
+#endif
if (argc == 2) {
if (strcmp(argv[1], "-h") == 0) {
usage();
@@ -99,17 +97,9 @@ main(int argc, char *argv[])
#ifdef APPLE
error = loadsmbvfs();
-#else
- error = getvfsbyname(SMBFS_VFSNAME, &vfc);
- if (error && vfsisloadable(SMBFS_VFSNAME)) {
- if(vfsload(SMBFS_VFSNAME))
- err(EX_OSERR, "vfsload("SMBFS_VFSNAME")");
- endvfsent();
- error = getvfsbyname(SMBFS_VFSNAME, &vfc);
- }
-#endif /* APPLE */
if (error)
errx(EX_OSERR, "SMB filesystem is not available");
+#endif
if (smb_lib_init() != 0)
exit(1);
OpenPOWER on IntegriCloud