Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
rebase: Handle cases where format-patch fails
[gitweb.git]
/
attr.c
diff --git
a/attr.c
b/attr.c
index cab01b8b57bd4bfa41d59ca344f9e8cf462cfcc3..056d702f6e244e4188abc3c8dc4db647699ec4d1 100644
(file)
--- a/
attr.c
+++ b/
attr.c
@@
-353,8
+353,8
@@
static struct attr_stack *read_attr_from_file(const char *path, int macro_ok)
int lineno = 0;
if (!fp) {
- if (errno != ENOENT)
- warn
ing(_("unable to access '%s': %s"), path, strerror(errno)
);
+ if (errno != ENOENT
&& errno != ENOTDIR
)
+ warn
_on_inaccessible(path
);
return NULL;
}
res = xcalloc(1, sizeof(*res));