summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-11-16 19:08:55 +0000
committerJeremy Allison <jra@samba.org>2000-11-16 19:08:55 +0000
commit9df3d64a2cdb2eafad5f597850f1a2fda8b1f8d2 (patch)
treecefd27f1a096b44c597b996f1921cf43a9d16b93 /source3
parent4a205df72077d89e06db8a82f1ccc7200300f6b1 (diff)
downloadsamba-9df3d64a2cdb2eafad5f597850f1a2fda8b1f8d2.tar.gz
samba-9df3d64a2cdb2eafad5f597850f1a2fda8b1f8d2.tar.bz2
samba-9df3d64a2cdb2eafad5f597850f1a2fda8b1f8d2.zip
Fix from Jim McDonough @ IBM for OS/2 clients.
Jeremy. (This used to be commit f571e1efd01c7b1b500a833df3bd074a8c4c65ec)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/smb.h1
-rw-r--r--source3/smbd/lanman.c10
2 files changed, 11 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index a5ace1eb4d..7fe36edee9 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -173,6 +173,7 @@ implemented */
#define ERRmoredata 234 /* More data to be returned */
#define ERRbaddirectory 267 /* Invalid directory name in a path. */
#define ERRunknownipc 2142
+#define ERRbuftoosmall 2123
#define ERROR_INVALID_FUNCTION (1)
#define ERROR_ACCESS_DENIED (5)
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index fe6b22a9bf..51472ea309 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -201,7 +201,17 @@ static BOOL init_package(struct pack_desc* p, int count, int subcount)
if (i > n) {
p->neededlen = i;
i = n = 0;
+#if 0
+ /*
+ * This is the old error code we used. Aparently
+ * WinNT/2k systems return ERRbuftoosmall (2123) and
+ * OS/2 needs this. I'm leaving this here so we can revert
+ * if needed. JRA.
+ */
p->errcode = ERRmoredata;
+#else
+ p->errcode = ERRbuftoosmall;
+#endif
}
else
p->errcode = NERR_Success;