Compare commits
No commits in common. "factory" and "devel" have entirely different histories.
@ -0,0 +1,28 @@
|
|||||||
|
From 954bfb70f24578ef33b1f77cf1a3d64fc2f2f595 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Aleksa Sarai <cyphar@cyphar.com>
|
||||||
|
Date: Mon, 20 Jun 2022 19:09:57 +1000
|
||||||
|
Subject: [PATCH] utils: lockfile: avoid stack overflow for lockfile buffer
|
||||||
|
References: https://github.com/rakshasa/rtorrent/pull/1169
|
||||||
|
|
||||||
|
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
|
||||||
|
---
|
||||||
|
src/utils/lockfile.cc | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/utils/lockfile.cc b/src/utils/lockfile.cc
|
||||||
|
index 7d11d8c9970f..fac5cb23e26f 100644
|
||||||
|
--- a/src/utils/lockfile.cc
|
||||||
|
+++ b/src/utils/lockfile.cc
|
||||||
|
@@ -98,7 +98,8 @@ Lockfile::try_lock() {
|
||||||
|
int pos = ::gethostname(buf, 255);
|
||||||
|
|
||||||
|
if (pos == 0) {
|
||||||
|
- ::snprintf(buf + std::strlen(buf), 255, ":+%i\n", ::getpid());
|
||||||
|
+ ssize_t len = std::strlen(buf);
|
||||||
|
+ ::snprintf(buf + len, 255 - len, ":+%i\n", ::getpid());
|
||||||
|
int __UNUSED result = ::write(fd, buf, std::strlen(buf));
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.36.1
|
||||||
|
|
@ -1,4 +0,0 @@
|
|||||||
mtime: 1735830402
|
|
||||||
commit: 5857fe05c1c1900aac7a237be3b537f77c0c3ab3488b24ee8d4f1fd4f897613c
|
|
||||||
url: https://src.opensuse.org/jengelh/rtorrent
|
|
||||||
revision: master
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:f5c6a47650ee6b43f5d65ec086d25800cd525250adc100ee3a95a92525405d30
|
|
||||||
size 256
|
|
BIN
rtorrent-0.15.1.tar.gz
(Stored with Git LFS)
BIN
rtorrent-0.15.1.tar.gz
(Stored with Git LFS)
Binary file not shown.
3
rtorrent-0.9.8.tar.gz
Normal file
3
rtorrent-0.9.8.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9edf0304bf142215d3bc85a0771446b6a72d0ad8218efbe184b41e4c9c7542af
|
||||||
|
size 647523
|
@ -1,31 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Thu Jan 2 10:36:44 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
|
|
||||||
|
|
||||||
- Update to release 0.15.1
|
|
||||||
* Resolved scgi software crash with SIGPIPE exception.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Thu Dec 26 19:14:37 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
|
||||||
|
|
||||||
- Update to release 0.15
|
|
||||||
* Resolved scgi software crash with SIGPIPE exception.
|
|
||||||
* Resolved a crash with the curl stack during shutdown.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Sun Sep 29 12:10:54 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
|
||||||
|
|
||||||
- Update to release 0.10.0
|
|
||||||
* A fix for a torrent client stack overflow crash with the lockfile
|
|
||||||
buffer.
|
|
||||||
* New trackers.delay_scrape command for .rtorrent.rc to avoid
|
|
||||||
crashes with thousands of torrents and allow instant startups.
|
|
||||||
* A fix for a critical memory leak with RPC commands which may
|
|
||||||
waste an alarming amount of memory.
|
|
||||||
* A fix for critical torrent client breakage if a power
|
|
||||||
outage/failure occurs during a session saving interval
|
|
||||||
- Delete 0001-utils-lockfile-avoid-stack-overflow-for-lockfile-buf.patch
|
|
||||||
(merged)
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jun 21 00:28:35 UTC 2022 - Aleksa Sarai <asarai@suse.com>
|
Tue Jun 21 00:28:35 UTC 2022 - Aleksa Sarai <asarai@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package rtorrent
|
# spec file for package rtorrent
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,9 +17,9 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: rtorrent
|
Name: rtorrent
|
||||||
Version: 0.15.1
|
Version: 0.9.8
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Console-based BitTorrent client
|
Summary: Console-based BitTorrent Client
|
||||||
License: SUSE-GPL-2.0+-with-openssl-exception
|
License: SUSE-GPL-2.0+-with-openssl-exception
|
||||||
Group: Productivity/Networking/File-Sharing
|
Group: Productivity/Networking/File-Sharing
|
||||||
URL: https://github.com/rakshasa/rtorrent
|
URL: https://github.com/rakshasa/rtorrent
|
||||||
@ -29,7 +29,7 @@ Source2: rtorrent.desktop
|
|||||||
# This manpage copied from the 0.9.2 tarball as it was missing in later versions
|
# This manpage copied from the 0.9.2 tarball as it was missing in later versions
|
||||||
Source3: rtorrent.1
|
Source3: rtorrent.1
|
||||||
Source4: rtorrent.service
|
Source4: rtorrent.service
|
||||||
BuildRequires: autoconf-archive
|
Patch1: 0001-utils-lockfile-avoid-stack-overflow-for-lockfile-buf.patch
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
@ -37,10 +37,9 @@ BuildRequires: ncurses-devel
|
|||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
BuildRequires: pkgconfig(cppunit) >= 1.9.6
|
BuildRequires: pkgconfig(cppunit) >= 1.9.6
|
||||||
BuildRequires: pkgconfig(libcurl) >= 7.15.4
|
BuildRequires: pkgconfig(libcurl) >= 7.15.4
|
||||||
BuildRequires: pkgconfig(libtorrent) >= 0.15.0
|
BuildRequires: pkgconfig(libtorrent) >= 0.13.8
|
||||||
BuildRequires: sysuser-tools
|
BuildRequires: pkgconfig(xmlrpc)
|
||||||
Provides: bundled(tinyxml2) = 10.0.0
|
Requires(pre): shadow
|
||||||
%sysusers_requires
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
rTorrent is a console-based BitTorrent client. It aims to be a
|
rTorrent is a console-based BitTorrent client. It aims to be a
|
||||||
@ -55,9 +54,11 @@ management.
|
|||||||
# It's full of type pun violations
|
# It's full of type pun violations
|
||||||
export CFLAGS="%optflags -fno-strict-aliasing"
|
export CFLAGS="%optflags -fno-strict-aliasing"
|
||||||
export CXXFLAGS="$CFLAGS"
|
export CXXFLAGS="$CFLAGS"
|
||||||
export CXXFLAGS="$CXXFLAGS -std=gnu++14"
|
export CXXFLAGS="$CXXFLAGS -std=gnu++11"
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
%configure --with-xmlrpc-tinyxml2 --enable-ipv6
|
%configure \
|
||||||
|
--with-xmlrpc-c="%_bindir/xmlrpc-c-config" \
|
||||||
|
--enable-ipv6
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -69,12 +70,8 @@ install -pm0644 "%{S:3}" "$b/%_mandir/man1/"
|
|||||||
%suse_update_desktop_file -r "%name" Network P2P
|
%suse_update_desktop_file -r "%name" Network P2P
|
||||||
install -Dm0644 "%{S:4}" "$b/%_unitdir/rtorrent.service"
|
install -Dm0644 "%{S:4}" "$b/%_unitdir/rtorrent.service"
|
||||||
|
|
||||||
echo 'u rtorrent - "rtorrent daemon"' >system-user-rtorrent.conf
|
%pre
|
||||||
mkdir -p "$b/%_sysusersdir"
|
getent passwd rtorrent >/dev/null || useradd -r rtorrent
|
||||||
cp -a system-user-rtorrent.conf "$b/%_sysusersdir/"
|
|
||||||
%sysusers_generate_pre system-user-rtorrent.conf random system-user-rtorrent.conf
|
|
||||||
|
|
||||||
%pre -f random.pre
|
|
||||||
%service_add_pre rtorrent.service
|
%service_add_pre rtorrent.service
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@ -93,6 +90,5 @@ cp -a system-user-rtorrent.conf "$b/%_sysusersdir/"
|
|||||||
%_datadir/applications/%name.desktop
|
%_datadir/applications/%name.desktop
|
||||||
%_mandir/man1/rtorrent.1*
|
%_mandir/man1/rtorrent.1*
|
||||||
%_unitdir/rtorrent.service
|
%_unitdir/rtorrent.service
|
||||||
%_sysusersdir/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user