forked from pool/rtorrent
Compare commits
14 Commits
Author | SHA256 | Date | |
---|---|---|---|
|
97dd433be1 | ||
|
9a5f5c01e6 | ||
|
f05e84b839 | ||
|
deb41dccbb | ||
|
e31c09e118 | ||
|
bd8806f16c | ||
|
1d86e50640 | ||
|
5268083a13 | ||
ca511e2c06 | |||
|
996bd0eaa3 | ||
|
e63c35c838 | ||
|
93bced7ea4 | ||
|
c085d7b9ef | ||
|
a0782c8d86 |
@ -1,28 +0,0 @@
|
||||
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
|
||||
|
4
_scmsync.obsinfo
Normal file
4
_scmsync.obsinfo
Normal file
@ -0,0 +1,4 @@
|
||||
mtime: 1735830402
|
||||
commit: 5857fe05c1c1900aac7a237be3b537f77c0c3ab3488b24ee8d4f1fd4f897613c
|
||||
url: https://src.opensuse.org/jengelh/rtorrent
|
||||
revision: master
|
3
build.specials.obscpio
Normal file
3
build.specials.obscpio
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f5c6a47650ee6b43f5d65ec086d25800cd525250adc100ee3a95a92525405d30
|
||||
size 256
|
BIN
rtorrent-0.15.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
rtorrent-0.15.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9edf0304bf142215d3bc85a0771446b6a72d0ad8218efbe184b41e4c9c7542af
|
||||
size 647523
|
@ -1,3 +1,31 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package rtorrent
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,9 +17,9 @@
|
||||
|
||||
|
||||
Name: rtorrent
|
||||
Version: 0.9.8
|
||||
Version: 0.15.1
|
||||
Release: 0
|
||||
Summary: Console-based BitTorrent Client
|
||||
Summary: Console-based BitTorrent client
|
||||
License: SUSE-GPL-2.0+-with-openssl-exception
|
||||
Group: Productivity/Networking/File-Sharing
|
||||
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
|
||||
Source3: rtorrent.1
|
||||
Source4: rtorrent.service
|
||||
Patch1: 0001-utils-lockfile-avoid-stack-overflow-for-lockfile-buf.patch
|
||||
BuildRequires: autoconf-archive
|
||||
BuildRequires: automake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libtool
|
||||
@ -37,9 +37,10 @@ BuildRequires: ncurses-devel
|
||||
BuildRequires: update-desktop-files
|
||||
BuildRequires: pkgconfig(cppunit) >= 1.9.6
|
||||
BuildRequires: pkgconfig(libcurl) >= 7.15.4
|
||||
BuildRequires: pkgconfig(libtorrent) >= 0.13.8
|
||||
BuildRequires: pkgconfig(xmlrpc)
|
||||
Requires(pre): shadow
|
||||
BuildRequires: pkgconfig(libtorrent) >= 0.15.0
|
||||
BuildRequires: sysuser-tools
|
||||
Provides: bundled(tinyxml2) = 10.0.0
|
||||
%sysusers_requires
|
||||
|
||||
%description
|
||||
rTorrent is a console-based BitTorrent client. It aims to be a
|
||||
@ -54,11 +55,9 @@ management.
|
||||
# It's full of type pun violations
|
||||
export CFLAGS="%optflags -fno-strict-aliasing"
|
||||
export CXXFLAGS="$CFLAGS"
|
||||
export CXXFLAGS="$CXXFLAGS -std=gnu++11"
|
||||
export CXXFLAGS="$CXXFLAGS -std=gnu++14"
|
||||
autoreconf -fiv
|
||||
%configure \
|
||||
--with-xmlrpc-c="%_bindir/xmlrpc-c-config" \
|
||||
--enable-ipv6
|
||||
%configure --with-xmlrpc-tinyxml2 --enable-ipv6
|
||||
%make_build
|
||||
|
||||
%install
|
||||
@ -70,8 +69,12 @@ install -pm0644 "%{S:3}" "$b/%_mandir/man1/"
|
||||
%suse_update_desktop_file -r "%name" Network P2P
|
||||
install -Dm0644 "%{S:4}" "$b/%_unitdir/rtorrent.service"
|
||||
|
||||
%pre
|
||||
getent passwd rtorrent >/dev/null || useradd -r rtorrent
|
||||
echo 'u rtorrent - "rtorrent daemon"' >system-user-rtorrent.conf
|
||||
mkdir -p "$b/%_sysusersdir"
|
||||
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
|
||||
|
||||
%post
|
||||
@ -90,5 +93,6 @@ getent passwd rtorrent >/dev/null || useradd -r rtorrent
|
||||
%_datadir/applications/%name.desktop
|
||||
%_mandir/man1/rtorrent.1*
|
||||
%_unitdir/rtorrent.service
|
||||
%_sysusersdir/*
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user