]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Translate ENXIO to NT_STATUS_ILLEGAL_FUNCTION
authorVolker Lendecke <vl@samba.org>
Mon, 15 May 2023 15:23:43 +0000 (17:23 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 3 Jul 2023 19:40:35 +0000 (19:40 +0000)
ENXIO is returned when trying to openat() a unix domain socket or a
FIFO without anything at the other end. [MS-ERREF] has
ILLEGAL_FUNCTION as "The specified handle is not open to the server
end of the named pipe.", which comes pretty close to me.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/errmap_unix.c

index 209bd255be506f977f6123b53721b86c8e2efe19..3aa2cd1e4fa7478f94881ef68383493b51b31876 100644 (file)
@@ -122,6 +122,9 @@ static const struct {
 #ifdef ERANGE
        { ERANGE, NT_STATUS_INTEGER_OVERFLOW },
 #endif
+#ifdef ENXIO
+       { ENXIO, NT_STATUS_ILLEGAL_FUNCTION },
+#endif
 };
 
 /*********************************************************************