summaryrefslogtreecommitdiffstats
path: root/progsreiserfs-file-read.patch
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-04-03 17:37:59 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-04-03 17:37:59 +0200
commite9052e9258f98a05bedd3e170d661947b9bc8c71 (patch)
tree590c0386af0c54c80133b4aac11906f24dfe984c /progsreiserfs-file-read.patch
parent02e3edf762d05ec4aacb348eb550f35ee1558a9f (diff)
Copy files from reiserfs. Need patched progsreiserfs
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;