Signed-off-by: Nguyễn Thái Ngọc Duy <pclo...@gmail.com>
---
 server-info.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/server-info.c b/server-info.c
index 7bc4e75d22..7fc2a76966 100644
--- a/server-info.c
+++ b/server-info.c
@@ -132,8 +132,11 @@ static int read_pack_info_file(const char *infofile)
        int old_cnt = 0;
 
        fp = fopen(infofile, "r");
-       if (!fp)
+       if (!fp) {
+               if (errno != ENOENT)
+                       warn_on_inaccessible(infofile);
                return 1; /* nonexistent is not an error. */
+       }
 
        while (fgets(line, sizeof(line), fp)) {
                int len = strlen(line);
-- 
2.11.0.157.gd943d85

Reply via email to