diff options
author | 2011-02-15 01:21:08 +0100 | |
---|---|---|
committer | 2011-02-15 01:21:08 +0100 | |
commit | bdde4c813e6b5ea4c23e768d029b3fb4586fc2dd (patch) | |
tree | 0b627e428d13d685507f9a76cb0c6e1988fa5675 | |
parent | app-backup/bup-0.23: bup "ocardial infarction" 0.23: mostly with Brandon's fa... (diff) | |
download | kork-bdde4c813e6b5ea4c23e768d029b3fb4586fc2dd.tar.gz kork-bdde4c813e6b5ea4c23e768d029b3fb4586fc2dd.tar.bz2 kork-bdde4c813e6b5ea4c23e768d029b3fb4586fc2dd.zip |
app-backup/bup-0.23: Report error if fwrite fails
-rw-r--r-- | app-backup/bup/Manifest | 2 | ||||
-rw-r--r-- | app-backup/bup/files/p2.patch | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app-backup/bup/Manifest b/app-backup/bup/Manifest index 6d94174..ce9a034 100644 --- a/app-backup/bup/Manifest +++ b/app-backup/bup/Manifest @@ -1,5 +1,5 @@ AUX p1.patch 1439 RMD160 f37d213cab2c7b9095e1eb0dfebff4358ce14f99 SHA1 88b5e9f43665886bfb3ce2df0902f4adf0426e13 SHA256 a3261d22b95f3546d22497de38c0b61e5cb3e05baed1af9bc30267543578c3b4 -AUX p2.patch 669 RMD160 3a93bd537821ed963e278faf3e32e41860b160ac SHA1 541c8cabebd48bd5d6fd8937884e73df32c19004 SHA256 f45efbc90bd4ae514dc76ce1f87b1e9448d17aed9d9971c87d2bb10bc440375e +AUX p2.patch 698 RMD160 65c26636bb7f8ab8ca33fa901b025ca417ee7ca9 SHA1 7eb513f9383f78be8f2424063e15f9c6b15c0fbe SHA256 5e3a5d6c61758ed5caa0da8d88e0efc8b9cd18deb07284d35d43ec4bc56677de DIST bup-0.22a.tar.gz 317660 RMD160 6c0e5c68758bb47b43bd0c9565c97651680ad11f SHA1 4a6032377b0ada54dd594da1ba8c8fdcf33cf4d2 SHA256 b8a25e57ccec3be4659a4caa66f85bbf39ea4832ac609d921222a70164080cff DIST bup-0.23.tar.gz 326349 RMD160 411861f0d285ac49ba891bf82eded771182dbdf7 SHA1 d6d1964505c87eacd47ff12089a79f3f311c1497 SHA256 867e7bab6e65a68d23c469dd5a266e2f4a867a56a9586bc76c9bf022ceb7fc03 EBUILD bup-0.22a.ebuild 937 RMD160 17768fc4714853359a255df4d518cb969a70918b SHA1 c50ad176279bdbef6ca8bd28f1de8184e0501aaf SHA256 0cb5fa01a9945e314f4639aa3c1ba71c05ae777d4fde56f9ac3987e9a1ae896e diff --git a/app-backup/bup/files/p2.patch b/app-backup/bup/files/p2.patch index 87a2f8f..ffdee66 100644 --- a/app-backup/bup/files/p2.patch +++ b/app-backup/bup/files/p2.patch @@ -6,7 +6,7 @@ Signed-off-by: Brandon Low <lostlogic@lostlogicx.com> 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lib/bup/_helpers.c b/lib/bup/_helpers.c -index df104cf..18a91a9 100644 +index df104cf..594ff0f 100644 --- a/lib/bup/_helpers.c +++ b/lib/bup/_helpers.c @@ -472,7 +472,8 @@ static PyObject *write_idx(PyObject *self, PyObject *args) @@ -15,7 +15,7 @@ index df104cf..18a91a9 100644 uint64_t nofs = htonll(ofs); - fwrite(&nofs, 8, 1, f); + if (fwrite(&nofs, 8, 1, f) != 1) -+ return NULL; ++ return PyErr_SetFromErrno(PyExc_OSError); ofs = 0x80000000 | ofs64_count++; } *ofs_ptr++ = htonl((uint32_t)ofs); |