Bug 154960 - tmpwatch prints unnecessary errors
tmpwatch prints unnecessary errors
Status: CLOSED RAWHIDE
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: tmpwatch (Show other bugs)
2.1
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Miloslav Trmač
Ben Levenson
: Reopened
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-14 23:37 EDT by John Newbigin
Modified: 2007-11-30 17:06 EST (History)
0 users

See Also:
Fixed In Version: 2.9.3-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-10-25 19:49:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description John Newbigin 2005-04-14 23:37:44 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050319

Description of problem:
If a temporary file is deleted before tmpwatch has a chance to lstat it it prints the following error:
error: failed to lstat /tmp/some-file: No such file or directory

These errors end up in emails from the cron daemon.

This error should be silently ignored.

Version-Release number of selected component (if applicable):
tmpwatch-2.8.1-1

How reproducible:
Always

Steps to Reproduce:
mkdir /tmp/asdf
cd /tmp/asdf
while true ; do /usr/sbin/tmpwatch 1 /tmp/asdf ; done &
while true ; do touch file1 ; rm file1 ; done &

(and if needed)
while true ; do touch file2 ; rm file2 ; done &

  

Actual Results:  error: failed to lstat /tmp/asdf/file1: No such file or directory
error: failed to lstat /tmp/asdf/file1: No such file or directory
error: failed to lstat /tmp/asdf/file1: No such file or directory
...


Expected Results:  No output.

Additional info:

Present also in EL3.  Have not checked EL4
Comment 1 Miloslav Trmač 2005-04-16 07:02:04 EDT
Fixed in rawhide tmpwatch-2.9.3-1. Thanks for your report.
Comment 2 John Newbigin 2007-10-25 19:41:20 EDT
This bug is still present in RHEL4 tmpwatch-2.9.1-1

error: failed to lstat /tmp/asdf/file2: No such file or directory
Comment 3 Miloslav Trmač 2007-10-25 19:49:36 EDT
Thank you for verifying that.  For RHEL4, this bug is currently tracked as #247880.
Comment 4 John Newbigin 2007-10-25 20:43:25 EDT
You are not authorized to access bug #247880

Any chance of seeing bug #247880?
Comment 5 Miloslav Trmač 2007-10-26 10:43:50 EDT
I don't think I'm allowed to do that - but the #247880 contains no additional
information about the bug.

Note You need to log in before you can comment on or make changes to this bug.