This brings the NT->DOS error mapping into better line with what NT does.
authorAndrew Bartlett <abartlet@samba.org>
Tue, 1 Jan 2002 06:16:43 +0000 (06:16 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 1 Jan 2002 06:16:43 +0000 (06:16 +0000)
I'll post the changes to the actual map to the list for comment, but this fixes
the 'unknown' case.

Andrew Bartlett
(This used to be commit 024843a2cedb0b9f06a3351c5838caea372b6c5c)

source3/libsmb/errormap.c

index ab524a01f596677144d0ccf19c591245cf3e2ab0..cf3dc34618ce595a155f97ae459ea40d81e94531 100644 (file)
@@ -1396,8 +1396,8 @@ void ntstatus_to_dos(NTSTATUS ntstatus, uint8 *eclass, uint32 *ecode)
                        return;
                }
        }
-       *eclass = ERRSRV;
-       *ecode = ERRerror;
+       *eclass = ERRHRD;
+       *ecode = ERRgeneral;
 }