Bug 48742

Summary: tmpwatch error
Product: [Retired] Red Hat Linux Reporter: Justin Albstmeijer <justin>
Component: tmpwatchAssignee: Preston Brown <pbrown>
Status: CLOSED DUPLICATE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-07-19 15:06:28 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:
Attachments:
Description Flags
Replacement /etc/cron.daily/tmpwatch
none
Replacement /etc/cron.daily/tmpwatch (fixed) none

Description Justin Albstmeijer 2001-07-11 10:53:23 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010701

Description of problem:
I get "error: lstat() of directory /var/cache/man/X11R6/cat? failed: No
such file or directory" when running /etc/cron.daily/tmpwatch.
This problem stated after upgrading to man-1.5i2-0.7x

How reproducible:
Always

Steps to Reproduce:
1. rpm -Uvh man-1.5i2-0.7x.i386.rpm
2. /etc/cron.daily/tmpwatch

	

Actual Results:  error: lstat() of directory /var/cache/man/X11R6/cat?
failed: No such file or directory

Expected Results:  No error

Additional info:

Comment 1 Need Real Name 2001-07-19 14:52:44 UTC
Created attachment 24127 [details]
Replacement /etc/cron.daily/tmpwatch

Comment 2 Need Real Name 2001-07-19 15:05:47 UTC
Created attachment 24130 [details]
Replacement /etc/cron.daily/tmpwatch (fixed)

Comment 3 Need Real Name 2001-07-19 15:06:23 UTC
The problem is caused by an attempt to use the ? wildcard to match 
directories that don't exist.  (When this happens, the question mark is left 
in the parameter unchanged.)  In this case, the check for the existence of /
var/cache/man is insufficient (on my machine, that directory only contains 
the whatis file).

The second attachment is a replacement /etc/cron.daily/tmpwatch.  It 
solves the problem by filtering out the entries that contain a ?.
The attachment prior to that is a buggy, older version.  Whoops, sorry. ^_^;


Comment 4 Preston Brown 2001-08-06 16:14:26 UTC

*** This bug has been marked as a duplicate of 47784 ***