public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rkhunter] rawhide: Move cron to use /run/lock instead of old /var/lock/subsys. Fixes rhbz#2545864
@ 2026-11-24 23:52 Kevin Fenzi
  0 siblings, 0 replies; only message in thread
From: Kevin Fenzi @ 2026-11-24 23:52 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rkhunter
Branch : rawhide
Commit : acbdfdb5521ff0f0c10341f71297a25dcbd3a2be
Author : Kevin Fenzi <kevin@scrye.com>
Date   : 2026-11-24T15:52:20-08:00
Stats  : +7/-4 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rkhunter/c/acbdfdb5521ff0f0c10341f71297a25dcbd3a2be?branch=rawhide

Log:
Move cron to use /run/lock instead of old /var/lock/subsys. Fixes rhbz#2545864

---
diff --git a/01-rkhunter b/01-rkhunter
index 1e85c8e..f44ec5e 100755
--- a/01-rkhunter
+++ b/01-rkhunter
@@ -6,10 +6,10 @@ XITVAL=0
 # Get a secure tempfile
 TMPFILE1=`/bin/mktemp -p /var/lib/rkhunter rkhcronlog.XXXXXXXXXX` || exit 1
 
-if [ ! -e /var/lock/subsys/rkhunter ]; then
+if [ ! -e /run/lock/rkhunter ]; then
 
   # Try to keep the SysInit boot scan from colliding with us (highly unlikely)
-  /bin/touch /var/lock/subsys/rkhunter
+  /bin/touch /run/lock/rkhunter
 
   # Source system configuration parameters.
   if [ -e /etc/sysconfig/rkhunter ] ; then
@@ -48,7 +48,7 @@ if [ ! -e /var/lock/subsys/rkhunter ]; then
   fi
 
   # Delete the gating lockfile
-  /bin/rm -f /var/lock/subsys/rkhunter
+  /bin/rm -f /run/lock/rkhunter
 fi
 
 # Delete the secure tempfile

diff --git a/rkhunter.spec b/rkhunter.spec
index 967654a..f77ae43 100644
--- a/rkhunter.spec
+++ b/rkhunter.spec
@@ -3,7 +3,7 @@
 
 Name:           rkhunter
 Version:        1.4.6
-Release:        33%{?dist}
+Release:        34%{?dist}
 Summary:        A host-based tool to scan for rootkits, backdoors and local exploits
 
 # Automatically converted from old format: GPLv2+ - review is highly recommended.
@@ -107,6 +107,9 @@ EOF
 %{_mandir}/man8/*
 
 %changelog
+* Tue Nov 24 2026 Kevin Fenzi <kevin@scrye.com> - 1.4.6-34
+- Move cron to use /run/lock instead of old /var/lock/subsys. Fixes rhbz#2545864
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.6-33
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

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

only message in thread, other threads:[~2026-11-24 23:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 23:52 [rpms/rkhunter] rawhide: Move cron to use /run/lock instead of old /var/lock/subsys. Fixes rhbz#2545864 Kevin Fenzi

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