summaryrefslogtreecommitdiffstats
path: root/progsreiserfs-file-read.patch
diff options
context:
space:
mode:
Diffstat (limited to 'progsreiserfs-file-read.patch')
-rw-r--r--progsreiserfs-file-read.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/progsreiserfs-file-read.patch b/progsreiserfs-file-read.patch
new file mode 100644
index 0000000..2fc2aa0
--- /dev/null
+++ b/progsreiserfs-file-read.patch
@@ -0,0 +1,12 @@
+diff -ru progsreiserfs-0.3.1-rc8.org/libreiserfs/file.c progsreiserfs-0.3.1-rc8/libreiserfs/file.c
+--- progsreiserfs-0.3.1-rc8.org/libreiserfs/file.c 2002-12-12 13:32:35.000000000 +0100
++++ progsreiserfs-0.3.1-rc8/libreiserfs/file.c 2011-03-30 08:00:37.000000000 +0200
+@@ -172,7 +172,7 @@
+ return readed;
+
+ offset = file->offset;
+- while (reiserfs_file_seek(file, file->offset)) {
++ while (readed < size && reiserfs_file_seek(file, file->offset)) {
+
+ if (!reiserfs_file_read_item(file, buffer + readed, size - readed))
+ return readed;