Description of Problem:
tmpwatch complains "failed to open /etc/mtab for reading"
Version-Release number of selected component (if applicable):
looks like you need an ext3 filesystem with a .journal file to reproduce
Steps to Reproduce:
1. /tmp is an ext3 filesystem with a .journal file
2. run "tmpwatch 240 /tmp"
3. get "failed to open /etc/mtab for reading"
"failed to open /etc/mtab for reading"
Created attachment 37402 [details]
check for null return from setmntent()
fixed in 2.8.1 and later. Shortly will be released as errata.
*** Bug 57317 has been marked as a duplicate of this bug. ***
Created attachment 40587 [details]
drop last char of fulldirname if it is `/' when browsing through mtab otherwise /tmp would not be equal to /tmp/
Created attachment 40588 [details]
sorry for the last patch..... this one is complete
Please download the errata RPMS from ftp://ftp.redhat.com.
update your system via Red Hat Network.