aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2023-06-09 11:46:11 +0000
committerWerner Koch <[email protected]>2023-06-09 11:46:56 +0000
commite16fc3e19c3fbef1e22099b40a92dafd832ff05c (patch)
tree2acf2edfa515a4ccdd8c0ea8dd2f042a7c62e3f0 /common
parentspeedo,w32: Call gpgconf --kill all (diff)
downloadgnupg-e16fc3e19c3fbef1e22099b40a92dafd832ff05c.tar.gz
gnupg-e16fc3e19c3fbef1e22099b40a92dafd832ff05c.zip
w32: Map ERROR_FILE_INVALID to EIO.
* common/sysutils.c (map_w32_to_errno): Add mapping. -- We see this error sometimes when writing to an USB connected disk.
Diffstat (limited to 'common')
-rw-r--r--common/sysutils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/sysutils.c b/common/sysutils.c
index ff75b698e..b59d2a961 100644
--- a/common/sysutils.c
+++ b/common/sysutils.c
@@ -252,6 +252,9 @@ map_w32_to_errno (DWORD w32_err)
case ERROR_ALREADY_EXISTS:
return EEXIST;
+ case ERROR_FILE_INVALID:
+ return EIO;
+
/* This mapping has been taken from reactOS. */
case ERROR_TOO_MANY_OPEN_FILES: return EMFILE;
case ERROR_ARENA_TRASHED: return ENOMEM;