From 7e647370489f0b6a200cc1e2966020cc451268290afc0f48a1171782d5e28332 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Thu, 8 Nov 2007 23:46:35 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rsync?expand=0&rev=11 --- rsync-hlink_crash.patch | 10 ++++++++++ rsync.changes | 6 ++++++ rsync.spec | 8 ++++++-- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 rsync-hlink_crash.patch diff --git a/rsync-hlink_crash.patch b/rsync-hlink_crash.patch new file mode 100644 index 0000000..0014af9 --- /dev/null +++ b/rsync-hlink_crash.patch @@ -0,0 +1,10 @@ +--- hlink.c 2007/11/08 15:44:15 1.3 ++++ hlink.c 2007/11/08 15:44:52 +@@ -299,6 +299,7 @@ + statx sx; + STRUCT_STAT st; + int statret, ndx = master; ++ memset(&sx,0,sizeof(sx)); + + file->F_HLINDEX = FINISHED_LINK; + if (link_stat(f_name(file, hlink1), &st, 0) < 0) diff --git a/rsync.changes b/rsync.changes index 2c99b49..98b768d 100644 --- a/rsync.changes +++ b/rsync.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Nov 8 16:45:30 CET 2007 - ro@suse.de + +- fix uninitialized struct sx in hlink.c:hard_link_cluster + to prevent crash when using acls (#338358) + ------------------------------------------------------------------- Fri Sep 14 15:03:17 CEST 2007 - ro@suse.de diff --git a/rsync.spec b/rsync.spec index 979915f..2d70ee4 100644 --- a/rsync.spec +++ b/rsync.spec @@ -23,7 +23,7 @@ Group: Productivity/Networking/Other PreReq: %fillup_prereq %insserv_prereq sed grep AutoReqProv: on Version: 2.6.9 -Release: 49 +Release: 70 Summary: Replacement for RCP/mirror that has Many More Features Source: samba.org/ftp/rsync/rsync-%{version}.tar.bz2 Source1: logrotate.rsync @@ -37,6 +37,7 @@ Patch3: system-zlib.diff Patch4: rsync-overlong.patch Patch5: lutimes-hack.diff Patch6: rsync-fix_fuzzy.patch +Patch7: rsync-hlink_crash.patch Url: http://rsync.samba.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-build %define with_system_zlib 0 @@ -75,6 +76,7 @@ cp configure.orig configure %patch4 -p1 %patch5 %patch6 +%patch7 cp configure.orig configure %build @@ -141,8 +143,10 @@ fi %doc %{_mandir}/man1/rsync.1.gz %doc %{_mandir}/man5/rsyncd.conf.5.gz %doc COPYING NEWS README tech_report.ps tech_report.tex - %changelog +* Thu Nov 08 2007 - ro@suse.de +- fix uninitialized struct sx in hlink.c:hard_link_cluster + to prevent crash when using acls (#338358) * Fri Sep 14 2007 - ro@suse.de - fix (#300526) restart will start standalone rsync if running under xinetd