From d1baa1fda928bfcc1998575f2af71aaa001402aa Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sun, 6 Jan 2002 02:55:37 +0000 Subject: DOS error 31 is ERRgeneral, General Failure. This is the WERROR equivalent to NT_STATUS_UNSUCCESSFUL according to AB's funky new error map. (This used to be commit 9c968fbb017d3369ac207e65348a9a22dbed0213) --- source3/include/doserr.h | 1 + source3/libsmb/errormap.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/include/doserr.h b/source3/include/doserr.h index 09f7a36f9f..3262370dfd 100644 --- a/source3/include/doserr.h +++ b/source3/include/doserr.h @@ -51,6 +51,7 @@ #define ERRremcd 16 /* Attempt to delete current directory */ #define ERRdiffdevice 17 /* rename/move across different filesystems */ #define ERRnofiles 18 /* no more files found in file search */ +#define ERRgeneral 31 /* General failure */ #define ERRbadshare 32 /* Share mode on file conflict with open mode */ #define ERRlock 33 /* Lock request conflicts with existing lock */ #define ERRunsup 50 /* Request unsupported, returned by Win 95, RJS 20Jun98 */ diff --git a/source3/libsmb/errormap.c b/source3/libsmb/errormap.c index b2b638b229..1c44675c83 100644 --- a/source3/libsmb/errormap.c +++ b/source3/libsmb/errormap.c @@ -49,7 +49,7 @@ static struct { uint32 dos_code; NTSTATUS ntstatus; } ntstatus_to_dos_map[] = { - {ERRDOS, 31, NT_STATUS_UNSUCCESSFUL}, + {ERRDOS, ERRgeneral, NT_STATUS_UNSUCCESSFUL}, {ERRDOS, ERRbadfunc, NT_STATUS_NOT_IMPLEMENTED}, {ERRDOS, 87, NT_STATUS_INVALID_INFO_CLASS}, {ERRDOS, 24, NT_STATUS_INFO_LENGTH_MISMATCH}, -- cgit