Bug 2360502

Summary: grep: warning: stray \ before /
Product: [Fedora] Fedora Reporter: Anthony Messina <amessina>
Component: rkhunterAssignee: Kevin Fenzi <kevin>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: cegolf, fedora, flits, kevin, nerijus, nonamedotc
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: rkhunter-1.4.6-28.fc43 rkhunter-1.4.6-28.fc42 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-04-27 01:21:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Anthony Messina 2025-04-16 23:18:13 UTC
After upgrading to Fedora 42, I get the following:
~]# rkhunter --propupd
[ Rootkit Hunter version 1.4.6 ]
grep: warning: stray \ before /

So far, it doesn't seem to affect the function of rkhunter.

Reproducible: Always

Comment 1 Kevin Fenzi 2025-04-19 17:21:50 UTC
Fix incoming. Apparently grep now warns if you are escaping a /

Comment 2 Fedora Update System 2025-04-19 17:26:06 UTC
FEDORA-2025-ec10f0454d (rkhunter-1.4.6-28.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-ec10f0454d

Comment 3 Fedora Update System 2025-04-19 17:30:57 UTC
FEDORA-2025-ec10f0454d (rkhunter-1.4.6-28.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2025-04-19 17:31:14 UTC
FEDORA-2025-9dce37e2e3 (rkhunter-1.4.6-28.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-9dce37e2e3

Comment 5 Fedora Update System 2025-04-19 22:29:58 UTC
FEDORA-2025-9dce37e2e3 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-9dce37e2e3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-9dce37e2e3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Colin J Thomson 2025-04-20 09:38:20 UTC
I just did some more testing with "run-parts /etc/cron.daily" from a shell this morning I see warnings. 
Testing manually, scan, propupd etc are fine.

Comment 7 Nerijus Baliƫnas 2025-04-20 12:45:03 UTC
With rkhunter-1.4.6-28.fc42.noarch I no longer get emails with warnings, but if I run /etc/cron.daily/rkhunter manually, I still get in the console:

grep: warning: stray \ before /
grep: warning: stray \ before /
...

Comment 8 Kevin Fenzi 2025-04-21 17:30:37 UTC
Yeah, there's another one in there. ;( 

Will look around for it... sorry for missing it.

Comment 9 Fedora Update System 2025-04-27 01:21:44 UTC
FEDORA-2025-9dce37e2e3 (rkhunter-1.4.6-28.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Anthony Messina 2025-04-30 13:14:09 UTC
The issue as originally reported still occurs for me during the cron run with rkhunter-1.4.6-28.fc42

/etc/cron.daily/rkhunter:

grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /

Comment 11 Kevin Fenzi 2025-05-04 18:10:16 UTC
ok. I think I have fixed that case in   https://bodhi.fedoraproject.org/updates/FEDORA-2025-f59100a7ff

please test and provide karma there. Thanks!

Comment 12 Chris Egolf 2025-05-04 19:50:12 UTC
This appears to be fixed.  I'm no longer getting the grep warnings with this latest update.