public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kevin Fenzi <kevin@scrye.com>
To: git-commits@fedoraproject.org
Subject: [rpms/incron] epel8: Add patch for system-incrontabs multiplying.
Date: Thu, 12 Nov 2026 02:01:51 GMT	[thread overview]
Message-ID: <179444891109.1.10456694410868786748.rpms-incron-4864e98754ef@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-11-12  2:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179444891109.1.10456694410868786748.rpms-incron-4864e98754ef@fedoraproject.org \
    --to=kevin@scrye.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox