1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-10 04:23:50 +03:00

more NTSTATUS/WERROR conversion

This commit is contained in:
Andrew Tridgell
-
parent e26502b1f8
commit ad648c5cd8
8 changed files with 779 additions and 182 deletions

View File

@@ -54,13 +54,13 @@ struct {
};
/* Map an NT error code from a Unix error code */
uint32 map_nt_error_from_unix(int unix_error)
NTSTATUS map_nt_error_from_unix(int unix_error)
{
int i = 0;
/* Look through list */
if (unix_error == 0) return NT_STATUS_OK;
/* Look through list */
while(unix_dos_nt_errmap[i].unix_error != 0) {
if (unix_dos_nt_errmap[i].unix_error == unix_error) {
return unix_dos_nt_errmap[i].nt_error;