summaryrefslogtreecommitdiff
path: root/usr/src/lib/libsmbfs/smb/ssnsetup.c
diff options
context:
space:
mode:
authorGordon Ross <Gordon.Ross@Sun.COM>2009-12-16 15:03:38 -0500
committerGordon Ross <Gordon.Ross@Sun.COM>2009-12-16 15:03:38 -0500
commit02d09e03eb27f3a2dc299de704e45dae5173f43f (patch)
treed01a29c58a8a455627b355abb83addad11802bd6 /usr/src/lib/libsmbfs/smb/ssnsetup.c
parentaab2fe4104e428e5213f84aee65b9905ec97cf9a (diff)
downloadillumos-joyent-02d09e03eb27f3a2dc299de704e45dae5173f43f.tar.gz
6650611 Attribute cache logic needs improvement
6876185 common I/F for net message build/parse in kernel vs user code 6891728 syslog shows: smbfs_close: error 9 closing /dirname 6906037 smbfs_mount() doesn't ASSERT the return value of smbfs_make_node() 6607536 the size of a dir on smbfs is not correct 6648146 smbfs should implement reclaim from node cache --HG-- rename : usr/src/lib/libsmbfs/smb/acl_conv.c => usr/src/common/smbclnt/smbfs_ntacl.c rename : usr/src/lib/libsmbfs/smb/acl_nt.h => usr/src/common/smbclnt/smbfs_ntacl.h
Diffstat (limited to 'usr/src/lib/libsmbfs/smb/ssnsetup.c')
-rw-r--r--usr/src/lib/libsmbfs/smb/ssnsetup.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/usr/src/lib/libsmbfs/smb/ssnsetup.c b/usr/src/lib/libsmbfs/smb/ssnsetup.c
index e4b5ec4f20..712a71f34c 100644
--- a/usr/src/lib/libsmbfs/smb/ssnsetup.c
+++ b/usr/src/lib/libsmbfs/smb/ssnsetup.c
@@ -405,11 +405,11 @@ smb__ssnsetup(struct smb_ctx *ctx,
mb_put_mbuf(mbp, mbc2->mb_top); /* NT password */
mbc2->mb_top = NULL; /* consumed */
}
- mb_put_dstring(mbp, ctx->ct_user, uc);
- mb_put_dstring(mbp, ctx->ct_domain, uc);
+ mb_put_string(mbp, ctx->ct_user, uc);
+ mb_put_string(mbp, ctx->ct_domain, uc);
}
- mb_put_dstring(mbp, NativeOS, uc);
- mb_put_dstring(mbp, LanMan, uc);
+ mb_put_string(mbp, NativeOS, uc);
+ mb_put_string(mbp, LanMan, uc);
smb_rq_bend(rqp);
err = smb_rq_internal(ctx, rqp);
@@ -436,7 +436,7 @@ smb__ssnsetup(struct smb_ctx *ctx,
is->is_smbuid = rqp->rq_uid;
mbp = &rqp->rq_rp;
- err = mb_get_uint8(mbp, &wc);
+ err = md_get_uint8(mbp, &wc);
if (err)
goto out;
@@ -444,18 +444,18 @@ smb__ssnsetup(struct smb_ctx *ctx,
if (caps & SMB_CAP_EXT_SECURITY) {
if (wc != 4)
goto out;
- mb_get_uint16le(mbp, NULL); /* secondary cmd */
- mb_get_uint16le(mbp, NULL); /* andxoffset */
- mb_get_uint16le(mbp, actionp); /* action */
- mb_get_uint16le(mbp, &sblen); /* sec. blob len */
- mb_get_uint16le(mbp, &bc); /* byte count */
+ md_get_uint16le(mbp, NULL); /* secondary cmd */
+ md_get_uint16le(mbp, NULL); /* andxoffset */
+ md_get_uint16le(mbp, actionp); /* action */
+ md_get_uint16le(mbp, &sblen); /* sec. blob len */
+ md_get_uint16le(mbp, &bc); /* byte count */
/*
* Get the security blob, after
* sanity-checking the length.
*/
if (sblen == 0 || bc < sblen)
goto out;
- err = mb_get_mbuf(mbp, sblen, &m);
+ err = md_get_mbuf(mbp, sblen, &m);
if (err)
goto out;
mb_initm(mbc2, m);
@@ -463,10 +463,10 @@ smb__ssnsetup(struct smb_ctx *ctx,
} else {
if (wc != 3)
goto out;
- mb_get_uint16le(mbp, NULL); /* secondary cmd */
- mb_get_uint16le(mbp, NULL); /* andxoffset */
- mb_get_uint16le(mbp, actionp); /* action */
- err = mb_get_uint16le(mbp, &bc); /* byte count */
+ md_get_uint16le(mbp, NULL); /* secondary cmd */
+ md_get_uint16le(mbp, NULL); /* andxoffset */
+ md_get_uint16le(mbp, actionp); /* action */
+ err = md_get_uint16le(mbp, &bc); /* byte count */
if (err)
goto out;
}
@@ -485,9 +485,9 @@ smb__ssnsetup(struct smb_ctx *ctx,
goto out;
/* Ignore any parsing errors for these strings. */
- err = mb_get_string(mbp, &ctx->ct_srv_OS, uc);
+ err = md_get_string(mbp, &ctx->ct_srv_OS, uc);
DPRINT("server OS: %s", err ? "?" : ctx->ct_srv_OS);
- err = mb_get_string(mbp, &ctx->ct_srv_LM, uc);
+ err = md_get_string(mbp, &ctx->ct_srv_LM, uc);
DPRINT("server LM: %s", err ? "?" : ctx->ct_srv_LM);
/*
* There's sometimes a server domain folloing