Skip to content

Commit f9f9193

Browse files
dschoGit for Windows Build Agent
authored andcommitted
mingw: Suppress warning that <commit>:.gitattributes does not exist
On Windows, a file name containing a colon is illegal. We should therefore expect the corresponding errno when `fopen()` is called for a path of the form <commit>:.gitattributes. This fixes #255. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent f2bcd04 commit f9f9193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

attr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ static struct attr_stack *read_attr_from_file(const char *path, int macro_ok)
373373
int lineno = 0;
374374

375375
if (!fp) {
376-
if (errno != ENOENT && errno != ENOTDIR)
376+
if (errno != ENOENT && errno != ENOTDIR && errno != EINVAL)
377377
warn_on_inaccessible(path);
378378
return NULL;
379379
}

0 commit comments

Comments
 (0)