Browse Source

Merge pull request #754 from ThomasWaldmann/0.xx-maint

fix silently ignoring I/O errors
TW 9 năm trước cách đây
mục cha
commit
9404718a10
2 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 1 0
      borg/_chunker.c
  2. 1 0
      docs/changes.rst

+ 1 - 0
borg/_chunker.c

@@ -152,6 +152,7 @@ chunker_fill(Chunker *c)
         }
         else {
             // some error happened
+            PyErr_SetFromErrno(PyExc_OSError);
             return 0;
         }
         length = c->bytes_read - offset;

+ 1 - 0
docs/changes.rst

@@ -24,6 +24,7 @@ Compatibility / maintenance notes:
 
 Bug fixes:
 
+- silently skips disk I/O errors, includes truncated files into archive, #748
 - seeking to an invalid position is an IOError in python 3.2, #621
 - Cache: fix exception handling in __init__, release lock, #610