public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/incron] epel8: Add patch for system-incrontabs multiplying.
@ 2026-11-12  2:01 Kevin Fenzi
  0 siblings, 0 replies; only message in thread
From: Kevin Fenzi @ 2026-11-12  2:01 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/incron
Branch : epel8
Commit : 4864e98754efc79165dd18dae99bc09b7a895fa2
Author : Kevin Fenzi <kevin@scrye.com>
Date   : 2019-03-18T10:45:17-07:00
Stats  : +30/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/incron/c/4864e98754efc79165dd18dae99bc09b7a895fa2?branch=epel8

Log:
Add patch for system-incrontabs multiplying.

---
diff --git a/56.patch b/56.patch
new file mode 100644
index 0000000..df6250f
--- /dev/null
+++ b/56.patch
@@ -0,0 +1,23 @@
+From 0a8cb83983394c2bd36105fcae5c56f89e931686 Mon Sep 17 00:00:00 2001
+From: Philippe Kueck <bqobccy6ejnq2bqvmebqiwqha4cs4@protected32.unixadm.org>
+Date: Thu, 14 Mar 2019 16:00:39 +0100
+Subject: [PATCH] use execl() instead of system() as system() returns, which
+ results in additional processes
+
+---
+ usertable.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/usertable.cpp b/usertable.cpp
+index 11fd04b..f8b157a 100644
+--- a/usertable.cpp
++++ b/usertable.cpp
+@@ -471,7 +471,7 @@ void UserTable::OnEvent(InotifyEvent& rEvt)
+ 
+     // for system table
+     if (m_fSysTable) {
+-      if (system(cmd.c_str()) != 0) // exec failed
++      if (execl("/bin/sh","sh", "-c", cmd.c_str(), (char *)0) != 0) // exec failed
+       {
+         syslog(LOG_ERR, "cannot exec process: %s", strerror(errno));
+         _exit(1);

diff --git a/incron.spec b/incron.spec
index 73cffbb..5b1e473 100644
--- a/incron.spec
+++ b/incron.spec
@@ -1,7 +1,7 @@
 Summary:     Inotify cron system
 Name:        incron
 Version:     0.5.12
-Release:     10%{?dist}
+Release:     11%{?dist}
 
 License:     GPLv2
 URL:         https://github.com/ar-/incron
@@ -9,6 +9,8 @@ Source0:     https://github.com/ar-/%{name}/archive/%{version}.tar.gz
 Source1:     incrond.service
 Patch0:      incron-0.5.10-gcc.patch
 Patch1:      incron-0.5.12-prevent-zombies.patch
+# https://github.com/ar-/incron/pull/56
+Patch2:      56.patch
 
 BuildRequires: systemd
 BuildRequires: gcc-c++
@@ -28,6 +30,7 @@ filesystem events rather than time periods.
 %setup -q
 %patch0 -p1 -b .gcc
 %patch1 -p1
+%patch2 -p1
 
 %build
 make %{?_smp_mflags} CXXFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}"
@@ -68,6 +71,9 @@ make install-man MANPATH="%{buildroot}%{_mandir}" INSTALL="install -D -p"
 %dir %{_sysconfdir}/%{name}.d
 
 %changelog
+* Mon Mar 18 2019 Kevin Fenzi <kevin@scrye.com> - 0.5.12-11
+- Add patch for system-incrontabs multiplying.
+
 * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.12-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-12  2:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-12  2:01 [rpms/incron] epel8: Add patch for system-incrontabs multiplying Kevin Fenzi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox