diff options
author | Jeremy Allison <jra@samba.org> | 2000-11-16 19:14:18 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-11-16 19:14:18 +0000 |
commit | 0ff3419388f3bce7dc3fc338d2d18157b1cc473c (patch) | |
tree | cd4f29fbc0b6918fed4ed924450d02eae30b63a9 | |
parent | 0120160ca8db45b8a50787eaca4c444c1b1900ad (diff) | |
download | samba-0ff3419388f3bce7dc3fc338d2d18157b1cc473c.tar.gz samba-0ff3419388f3bce7dc3fc338d2d18157b1cc473c.tar.xz samba-0ff3419388f3bce7dc3fc338d2d18157b1cc473c.zip |
Fix from Jim McDonough @ IBM for OS/2 clients.
Jeremy.
-rw-r--r-- | source/include/smb.h | 1 | ||||
-rw-r--r-- | source/smbd/lanman.c | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/source/include/smb.h b/source/include/smb.h index 7a7996bb7a0..5f852368b5f 100644 --- a/source/include/smb.h +++ b/source/include/smb.h @@ -171,6 +171,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/source/smbd/lanman.c b/source/smbd/lanman.c index 944a187ccc9..6933a059e85 100644 --- a/source/smbd/lanman.c +++ b/source/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; |