Bug 48742 - tmpwatch error
Summary: tmpwatch error
Status: CLOSED DUPLICATE of bug 47784
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: tmpwatch
Version: 7.0
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Preston Brown
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2001-07-11 10:53 UTC by Justin Albstmeijer
Modified: 2007-04-18 16:34 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2001-07-19 15:06:28 UTC

Attachments (Terms of Use)
Replacement /etc/cron.daily/tmpwatch (198 bytes, text/plain)
2001-07-19 14:52 UTC, Need Real Name
no flags Details
Replacement /etc/cron.daily/tmpwatch (fixed) (203 bytes, text/plain)
2001-07-19 15:05 UTC, Need Real Name
no flags Details

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:

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 ***

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