diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2001-12-20 16:16:25 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2001-12-20 16:16:25 +0000 |
commit | 48de1f540d9fce8ad29e667bb998732ab193d516 (patch) | |
tree | 047ddfc533f4ae21ddcdd454a87abe41ff403b0d /contrib/smbfs/smbutil/login.c | |
parent | 4e260b134ff188548ec2c8a16a37570a4abf1257 (diff) | |
download | FreeBSD-src-48de1f540d9fce8ad29e667bb998732ab193d516.zip FreeBSD-src-48de1f540d9fce8ad29e667bb998732ab193d516.tar.gz |
Import smbfs-1.4.2.
Diffstat (limited to 'contrib/smbfs/smbutil/login.c')
-rw-r--r-- | contrib/smbfs/smbutil/login.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/contrib/smbfs/smbutil/login.c b/contrib/smbfs/smbutil/login.c index 2b3a452..e1c856f 100644 --- a/contrib/smbfs/smbutil/login.c +++ b/contrib/smbfs/smbutil/login.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: login.c,v 1.5 2001/01/28 07:35:00 bp Exp $ + * $Id: login.c,v 1.6 2001/08/22 03:33:38 bp Exp $ */ #include <sys/param.h> #include <sys/errno.h> @@ -78,6 +78,10 @@ cmd_login(int argc, char *argv[]) /*NOTREACHED*/ } } +#ifdef APPLE + if (loadsmbvfs()) + errx(EX_OSERR, "SMB filesystem is not available"); +#endif if (smb_ctx_resolve(ctx) != 0) exit(1); level = ctx->ct_parsedlevel; @@ -139,6 +143,11 @@ cmd_logout(int argc, char *argv[]) /*NOTREACHED*/ } } +#ifdef APPLE + error = loadsmbvfs(); + if (error) + errx(EX_OSERR, "SMB filesystem is not available"); +#endif ctx->ct_ssn.ioc_opt &= ~SMBVOPT_CREATE; ctx->ct_sh.ioc_opt &= ~SMBSOPT_CREATE; if (smb_ctx_resolve(ctx) != 0) |