diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-22 06:49:27 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:02:24 -0500 |
commit | 651f3903f0a380a951bfe5bf80322f1ab2330705 (patch) | |
tree | f96181de82ae443863b3c07bd692ee63e87b38a5 /source4/libcli | |
parent | 517238f0aa1a578aec69a40e92022a7636780c3a (diff) | |
download | samba-651f3903f0a380a951bfe5bf80322f1ab2330705.tar.gz samba-651f3903f0a380a951bfe5bf80322f1ab2330705.tar.bz2 samba-651f3903f0a380a951bfe5bf80322f1ab2330705.zip |
r3131: - make map_nt_error_from_unix() return NT_STATUS_UNSUCCESSFUL if errno is 0
- more consistent checking for system call return values in simple backend
(This used to be commit 375a9a1347abf0b917cf94ea0cabcdea37d60e98)
Diffstat (limited to 'source4/libcli')
-rw-r--r-- | source4/libcli/util/errormap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/libcli/util/errormap.c b/source4/libcli/util/errormap.c index 482743b03b..650dc55e50 100644 --- a/source4/libcli/util/errormap.c +++ b/source4/libcli/util/errormap.c @@ -1534,13 +1534,13 @@ const struct unix_error_map unix_dos_nt_errmap[] = { /********************************************************************* Map an NT error code from a Unix error code. *********************************************************************/ - NTSTATUS map_nt_error_from_unix(int unix_error) { int i = 0; - if (unix_error == 0) - return NT_STATUS_OK; + if (unix_error == 0) { + return NT_STATUS_UNSUCCESSFUL; + } /* Look through list */ while(unix_dos_nt_errmap[i].unix_error != 0) { |