Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
MALLOC_CHECK: enable it, unless disabled explicitly
[gitweb.git]
/
attr.c
diff --git
a/attr.c
b/attr.c
index b52efb55a036be10618d531d66697d7f7220c524..f12c83f80a0f03b2112c212e46c571ec4074abf3 100644
(file)
--- a/
attr.c
+++ b/
attr.c
@@
-352,8
+352,11
@@
static struct attr_stack *read_attr_from_file(const char *path, int macro_ok)
char buf[2048];
int lineno = 0;
- if (!fp)
+ if (!fp) {
+ if (errno != ENOENT)
+ warn_on_inaccessible(path);
return NULL;
+ }
res = xcalloc(1, sizeof(*res));
while (fgets(buf, sizeof(buf), fp))
handle_attr_line(res, buf, path, ++lineno, macro_ok);