s3:lib/errmap_unix: map EPIPE to NT_STATUS_CONNECTION_DISCONNECTED
authorStefan Metzmacher <metze@samba.org>
Tue, 25 Oct 2011 13:12:05 +0000 (15:12 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 25 Oct 2011 15:58:33 +0000 (17:58 +0200)
This lets map_nt_error_from_unix() return the same value as
map_nt_error_from_unix_common().

There are no callers relying on NT_STATUS_PIPE_BROKEN.

metze

source3/lib/errmap_unix.c

index ea195474ef75c184e83f90109f18e0e23e670a78..28f527ec95e69fe356b19d4dbf9105dacfcd2163 100644 (file)
@@ -50,7 +50,7 @@ static const struct {
        { ENOMEM,       NT_STATUS_NO_MEMORY },
        { EISDIR,       NT_STATUS_FILE_IS_A_DIRECTORY},
 #ifdef EPIPE
-       { EPIPE,        NT_STATUS_PIPE_BROKEN},
+       { EPIPE,        NT_STATUS_CONNECTION_DISCONNECTED},
 #endif
        { EMLINK,       NT_STATUS_TOO_MANY_LINKS },
        { ENOSYS,       NT_STATUS_NOT_SUPPORTED },