Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2beae72

Browse files
committed
Map ERROR_INVALID_NAME to ENOENT in mapping table of win32error.c
This error can be reached when sending an incorrect file name to open() on Windows, resulting in a confusing errno reported. This has been seen in the development of a different patch by the same author. Author: Bharath Rupireddy Discussion: https://postgr.es/m/CALj2ACWet-b8Juba0DiXwfGCyyOcohzwksahE5ebB9rcbLZKCQ@mail.gmail.com
1 parent b6d8a60 commit 2beae72

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/port/win32error.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ static const struct
164164
},
165165
{
166166
ERROR_DELETE_PENDING, ENOENT
167+
},
168+
{
169+
ERROR_INVALID_NAME, ENOENT
167170
}
168171
};
169172

0 commit comments

Comments
 (0)