From 80437a4cc0d88f47fb20901abf28590c35f3b09a Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 3 Jan 2002 08:36:47 +0000 Subject: Update the NT_STATUS -> DOS error table. This new table is rather different to the old one (see diff posted to the list for a sorted list of differences) and needs a *lot* of testing. It does however seem to line up much better with what NT is using, as exampled by the change to the OBJECT_NAME_COLLISION DOS error, it now matches win2k where it didn't before. I can't see any critical errors we now get wrong, and I know that the auth errors are correct as per my on-the-wire observations. This table was produced (and I hope to comment this better later) by using the ERRMAPEXTRACT smbtorture tool, a Win2k domain member and the 'name_to_ntstatus' auth module on the HEAD PDC. This module returned the username as the error, and the NT box was forced to give me a dos error becouse thats all I negotiated on that connection. Hence the map. Andrew Bartlett (This used to be commit a855dfb2e0b899d03087860e5462c2aed3ca4cad) --- source3/libsmb/smberr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/libsmb/smberr.c') diff --git a/source3/libsmb/smberr.c b/source3/libsmb/smberr.c index 71e609ff3a7..b6e6f03740e 100644 --- a/source3/libsmb/smberr.c +++ b/source3/libsmb/smberr.c @@ -51,14 +51,14 @@ err_code_struct dos_msgs[] = { {"ERRnofids",ERRnofids,"No file descriptors available"}, {"ERRnoaccess",ERRnoaccess,"Access denied."}, {"ERRbadfid",ERRbadfid,"Invalid file handle."}, - {"ERRbadmcb",7,"Memory control blocks destroyed."}, + {"ERRbadmcb",ERRbadmcb,"Memory control blocks destroyed."}, {"ERRnomem",ERRnomem,"Insufficient server memory to perform the requested function."}, {"ERRbadmem",ERRbadmem,"Invalid memory block address."}, {"ERRbadenv",ERRbadenv,"Invalid environment."}, {"ERRbadformat",11,"Invalid format."}, {"ERRbadaccess",ERRbadaccess,"Invalid open mode."}, {"ERRbaddata",ERRbaddata,"Invalid data."}, - {"ERR",ERRres,"reserved."}, + {"ERRres",ERRres,"reserved."}, {"ERRbaddrive",ERRbaddrive,"Invalid drive specified."}, {"ERRremcd",ERRremcd,"A Delete Directory request attempted to remove the server's current directory."}, {"ERRdiffdevice",ERRdiffdevice,"Not same device."}, @@ -74,7 +74,7 @@ err_code_struct dos_msgs[] = { {"ERRpipeclosing",ERRpipeclosing,"Pipe close in progress."}, {"ERRnotconnected",ERRnotconnected,"No process on other end of pipe."}, {"ERRmoredata",ERRmoredata,"There is more data to be returned."}, - {"ERRinvgroup",2455,"Invalid workgroup (try the -W option)"}, + {"ERRinvgroup",ERRinvgroup,"Invalid workgroup (try the -W option)"}, {"ERRlogonfailure",ERRlogonfailure,"Logon failure"}, {"ERRdiskfull",ERRdiskfull,"Disk full"}, {NULL,-1,NULL}}; -- cgit