Description of Problem: tmpwatch complains "failed to open /etc/mtab for reading" Version-Release number of selected component (if applicable): tmpwatch-2.8-2 How Reproducible: looks like you need an ext3 filesystem with a .journal file to reproduce this. 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" Actual Results: "failed to open /etc/mtab for reading" Expected Results: no error Additional Information: patch attached...
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. (tmpwatch-2.8.1-1.i386.rpm) or update your system via Red Hat Network.