Resolves: #1683737 - [abrt] rsync: utf8_internal_loop(): rsync killed by SIGSEGV
This commit is contained in:
parent
e65ef37a19
commit
0a6acb64a2
22
rsync-3.0.6-iconv-logging.patch
Normal file
22
rsync-3.0.6-iconv-logging.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
diff --git a/log.c b/log.c
|
||||||
|
index 34a013b..1aca728 100644
|
||||||
|
--- a/log.c
|
||||||
|
+++ b/log.c
|
||||||
|
@@ -377,10 +377,13 @@ output_msg:
|
||||||
|
filtered_fwrite(f, convbuf, outbuf.len, 0);
|
||||||
|
outbuf.len = 0;
|
||||||
|
}
|
||||||
|
- if (!ierrno || ierrno == E2BIG)
|
||||||
|
- continue;
|
||||||
|
- fprintf(f, "\\#%03o", CVAL(inbuf.buf, inbuf.pos++));
|
||||||
|
- inbuf.len--;
|
||||||
|
+ /* Log one byte of illegal/incomplete sequence and continue with
|
||||||
|
+ * the next character. Check that the buffer is non-empty for the
|
||||||
|
+ * sake of robustness. */
|
||||||
|
+ if ((ierrno == EILSEQ || ierrno == EINVAL) && inbuf.len) {
|
||||||
|
+ fprintf(f, "\\#%03o", CVAL(inbuf.buf, inbuf.pos++));
|
||||||
|
+ inbuf.len--;
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
} else
|
||||||
|
#endif
|
@ -9,7 +9,7 @@
|
|||||||
Summary: A program for synchronizing files over a network
|
Summary: A program for synchronizing files over a network
|
||||||
Name: rsync
|
Name: rsync
|
||||||
Version: 3.1.3
|
Version: 3.1.3
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
URL: http://rsync.samba.org/
|
URL: http://rsync.samba.org/
|
||||||
|
|
||||||
Source0: https://download.samba.org/pub/rsync/src/rsync-%{version}%{?prerelease}.tar.gz
|
Source0: https://download.samba.org/pub/rsync/src/rsync-%{version}%{?prerelease}.tar.gz
|
||||||
@ -29,6 +29,7 @@ License: GPLv3+
|
|||||||
|
|
||||||
Patch0: rsync-man.patch
|
Patch0: rsync-man.patch
|
||||||
Patch1: rsync-noatime.patch
|
Patch1: rsync-noatime.patch
|
||||||
|
Patch2: rsync-3.0.6-iconv-logging.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Rsync uses a reliable algorithm to bring remote and host files into
|
Rsync uses a reliable algorithm to bring remote and host files into
|
||||||
@ -70,6 +71,7 @@ patch -p1 -i patches/copy-devices.diff
|
|||||||
|
|
||||||
%patch0 -p1 -b .man
|
%patch0 -p1 -b .man
|
||||||
%patch1 -p1 -b .noatime
|
%patch1 -p1 -b .noatime
|
||||||
|
%patch2 -p1 -b .iconv
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@ -114,6 +116,9 @@ install -D -m644 %{SOURCE6} $RPM_BUILD_ROOT/%{_unitdir}/rsyncd@.service
|
|||||||
%systemd_postun_with_restart rsyncd.service
|
%systemd_postun_with_restart rsyncd.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 19 2019 Michal Ruprich <mruprich@redhat.com> - 3.1.3-7
|
||||||
|
- Resolves: #1683737 - [abrt] rsync: utf8_internal_loop(): rsync killed by SIGSEGV
|
||||||
|
|
||||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.3-6
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.3-6
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user