]> git.pld-linux.org Git - packages/librsync.git/commitdiff
- fix format string error auto/th/librsync-0.9.7-6
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 25 Jul 2015 09:20:49 +0000 (11:20 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 25 Jul 2015 09:21:01 +0000 (11:21 +0200)
- rel 6

format-security.patch [new file with mode: 0644]
librsync.spec

diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..c0b7a64
--- /dev/null
@@ -0,0 +1,11 @@
+--- librsync-0.9.7/buf.c~      2004-02-08 00:17:57.000000000 +0100
++++ librsync-0.9.7/buf.c       2015-07-25 11:19:24.237688098 +0200
+@@ -213,7 +213,7 @@
+     got = fread(*buf, 1, *len, f);
+     if (got == -1) {
+-        rs_error(strerror(errno));
++        rs_error("%s", strerror(errno));
+         return RS_IO_ERROR;
+     } else if (got == 0) {
+         rs_error("unexpected eof on fd%d", fileno(f));
index d660c9b7f5e5a3d00bb9da85fc6b02159ce7ddc3..0b366ed569842afcc0c69ed3476b2de0db20dff9 100644 (file)
@@ -2,13 +2,14 @@ Summary:      Rsync libraries
 Summary(pl.UTF-8):     Biblioteki rsync
 Name:          librsync
 Version:       0.9.7
-Release:       5
+Release:       6
 License:       LGPL
 Group:         Libraries
 Source0:       http://dl.sourceforge.net/librsync/%{name}-%{version}.tar.gz
 # Source0-md5: 24cdb6b78f45e0e83766903fd4f6bc84
 Patch0:                %{name}-link.patch
 Patch1:                %{name}-4Gigbug.patch
+Patch2:                format-security.patch
 URL:           http://librsync.sourceforge.net/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -70,6 +71,7 @@ Statyczna biblioteka librsync.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__libtoolize}
This page took 0.097025 seconds and 4 git commands to generate.