From: Nguyễn Thái Ngọc Duy Date: Thu, 20 Apr 2017 11:26:06 GMT Subject: [PATCH 12/15] wt-status.c: report error on failure to fopen() Message-ID: <20170420112609.26089-13-pclouds@gmail.com> In-Reply-To: <20170420112609.26089-1-pclouds@gmail.com> Signed-off-by: Nguyễn Thái Ngọc Duy --- wt-status.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wt-status.c b/wt-status.c index 0375484962..5c12bb6ae3 100644 --- a/wt-status.c +++ b/wt-status.c @@ -1067,6 +1067,8 @@ static char *read_line_from_git_path(const char *filename) struct strbuf buf = STRBUF_INIT; FILE *fp = fopen(git_path("%s", filename), "r"); if (!fp) { + if (errno != ENOENT) + warn_on_inaccessible(git_path("%s", filename)); strbuf_release(&buf); return NULL; } -- 2.11.0.157.gd943d85