From 8f10d9679925975859a74038317db3b10a104fef Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 13 Aug 2015 15:25:59 +0000 Subject: [PATCH] mingw: Suppress warning that :.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 :.gitattributes. This fixes https://github.com/git-for-windows/git/issues/255. Signed-off-by: Johannes Schindelin --- attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attr.c b/attr.c index 8f2ac6c88c8c2f..26c712a6214ecf 100644 --- a/attr.c +++ b/attr.c @@ -375,7 +375,7 @@ static struct attr_stack *read_attr_from_file(const char *path, int macro_ok) int lineno = 0; if (!fp) { - if (errno != ENOENT && errno != ENOTDIR) + if (errno != ENOENT && errno != ENOTDIR && errno != EINVAL) warn_on_inaccessible(path); return NULL; }