summaryrefslogtreecommitdiffstats
path: root/source/libsmb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-10 09:49:55 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-10 09:49:55 +0000
commitd178c00aae77710ae6ff20a7f54a30e3bd8232bb (patch)
treea1f37e1534ab946409343478abbcbac6b23da022 /source/libsmb
parent5e04885b86791e6ef8b4a316e64d56c6eb05f35d (diff)
downloadsamba-d178c00aae77710ae6ff20a7f54a30e3bd8232bb.tar.gz
samba-d178c00aae77710ae6ff20a7f54a30e3bd8232bb.tar.xz
samba-d178c00aae77710ae6ff20a7f54a30e3bd8232bb.zip
more merging
it is now at the stage that winbindd can compile in the head branch, but not link
Diffstat (limited to 'source/libsmb')
-rw-r--r--source/libsmb/clierror.c2
-rw-r--r--source/libsmb/nterr.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/source/libsmb/clierror.c b/source/libsmb/clierror.c
index e09064bf0f3..78a7c9d451c 100644
--- a/source/libsmb/clierror.c
+++ b/source/libsmb/clierror.c
@@ -163,7 +163,7 @@ int cli_error(struct cli_state *cli, uint8 *eclass, uint32 *num, uint32 *nt_rpc_
DEBUG(10,("cli_error: 32 bit codes: code=%08x\n", nt_err));
if (!IS_BITS_SET_ALL(nt_err, 0xc0000000)) return 0;
- switch (nt_err & 0xFFFFFF) {
+ switch (nt_err) {
case NT_STATUS_ACCESS_VIOLATION: return EACCES;
case NT_STATUS_NO_SUCH_FILE: return ENOENT;
case NT_STATUS_NO_SUCH_DEVICE: return ENODEV;
diff --git a/source/libsmb/nterr.c b/source/libsmb/nterr.c
index ef3fb4b8baf..3f19a669414 100644
--- a/source/libsmb/nterr.c
+++ b/source/libsmb/nterr.c
@@ -526,11 +526,9 @@ char *get_nt_error_msg(uint32 nt_code)
pstrcpy(msg, "Unknown NT error");
- nt_code &= 0xFFFF;
-
while (nt_errs[idx].nt_errstr != NULL)
{
- if (nt_errs[idx].nt_errcode == nt_code)
+ if ((nt_errs[idx].nt_errcode & 0xFFFFFF) == (nt_code & 0xFFFFFF))
{
pstrcpy(msg, nt_errs[idx].nt_errstr);
return msg;