s3:lib: Map ECANCELED to NT_STATUS_CANCELLED
authorSamuel Cabrero <scabrero@samba.org>
Thu, 30 Jul 2020 10:07:57 +0000 (12:07 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 8 Jul 2021 09:30:40 +0000 (09:30 +0000)
Now map_nt_error_from_unix() returns the same value as
map_nt_error_from_unix_common().

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/lib/errmap_unix.c

index 33b48cadcb570bf504e06502252aa94136e4bbb7..e7cbe2794c5291f0b938ee94c4a92dc1fee68c18 100644 (file)
@@ -261,6 +261,9 @@ static const struct {
 #ifdef EXDEV
        {NT_STATUS_NOT_SAME_DEVICE, EXDEV},
 #endif
+#ifdef ECANCELED
+       {NT_STATUS_CANCELLED, ECANCELED},
+#endif
 };
 
 int map_errno_from_nt_status(NTSTATUS status)