[packages/progsreiserfs] - added file-read patch from testdisk; release .7
qboosh
qboosh at pld-linux.org
Sun Jan 25 15:10:35 CET 2015
commit 83dd4453c41ba5631d6e4e9914c2bb14a1a54710
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jan 25 15:12:30 2015 +0100
- added file-read patch from testdisk; release .7
progsreiserfs-file-read.patch | 12 ++++++++++++
progsreiserfs.spec | 4 +++-
2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/progsreiserfs.spec b/progsreiserfs.spec
index 5e87c2e..3f54c2b 100644
--- a/progsreiserfs.spec
+++ b/progsreiserfs.spec
@@ -3,7 +3,7 @@ Summary(pl.UTF-8): Programy niezbędne do manipulowania partycjami reiserfs
Name: progsreiserfs
Version: 0.3.1
%define subver rc8
-Release: 1.%{subver}.6
+Release: 1.%{subver}.7
License: GPL
Group: Applications/System
Source0: http://reiserfs.linux.kiev.ua/snapshots/%{name}-%{version}-%{subver}.tar.gz
@@ -14,6 +14,7 @@ Patch1: %{name}-sparc-linux.patch
Patch2: %{name}-typo.patch
Patch3: %{name}-am18.patch
Patch4: %{name}-missing-nls.patch
+Patch5: %{name}-file-read.patch
URL: http://reiserfs.linux.kiev.ua/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
@@ -63,6 +64,7 @@ Biblioteki statyczne do reiserfs.
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
cp -f %{SOURCE1} po/pl.po
%{__perl} -pi -e 's/(ALL_LINGUAS=")/$1pl /' configure.in
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;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/progsreiserfs.git/commitdiff/83dd4453c41ba5631d6e4e9914c2bb14a1a54710
More information about the pld-cvs-commit
mailing list