summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-01-06 02:55:37 +0000
committerTim Potter <tpot@samba.org>2002-01-06 02:55:37 +0000
commitd1baa1fda928bfcc1998575f2af71aaa001402aa (patch)
tree9d84cdf8ad058c94dc259a1b0a1e3f1f14c83533 /source3
parentb8b228d9615352f552a534c30076032d4e2dd3ef (diff)
downloadsamba-d1baa1fda928bfcc1998575f2af71aaa001402aa.tar.gz
samba-d1baa1fda928bfcc1998575f2af71aaa001402aa.tar.bz2
samba-d1baa1fda928bfcc1998575f2af71aaa001402aa.zip
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)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/doserr.h1
-rw-r--r--source3/libsmb/errormap.c2
2 files changed, 2 insertions, 1 deletions
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},