summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
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},