Bug 48468
| Summary: | makewhats in latest release of man conflicts with tmpwatch | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | mitchell mcgee <mitchm> |
| Component: | man | Assignee: | Bernhard Rosenkraenzer <bero> |
| Status: | CLOSED DUPLICATE | QA Contact: | Ben Levenson <benl> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.0 | CC: | sjcjonker |
| 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-10 18:54:13 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: | |||
From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) Description of problem: man-1.5i2-0.7x appears to have introduced a version of makewhatis that creates a whatis file in /var/cache/man for Appache. How reproducible: Always Steps to Reproduce: 1.Occurs automatically if makewhatis.cron runs from cron (/etc/cron.daily or /etc/cron.weekly) and Appache exists on the system. 2.running /etc/cron.daily/tmpwatch 3. Actual Results: /usr/sbin/makewhatis is executed by the makewhatis.cron scripts in the /etc/cron.daily and /etc/cron.weekly directories. /etc/cron.daily also contains the tmpwatch script. The tmpwatch scripts checks to see if the /var/cache/man directory exists; if the directory exist, it assumes the directory /var/cache/man/X11R6/cat? directories also exist and attempts to pass these directories as parameters to /usr/sbin/tmpwatch. The problem arises when the whatis file is the only entry in the /var/cache/man directory. Then the following cron error is generated: /etc/cron.daily/tmpwatch: error: lstat() of directory /var/cache/man/X11R6/cat? failed: No such file or directory The conflicting logic in /etc/cron.daily/tmpwatch is: [-d /var/cache/man] && /usr/sbin/tmpwatch -f 240 /var/cache/man/ {X11R6/cat?, cat?, local/cat?} Expected Results: makewhatis should not place files under /var/cache/man or /etc/cron.daily/tmpwatch script needs to condition the passing of directory paremters to /usr/sbin/tmpwatch upon a more specific check of the existence of directories /var/cache/man/X11R6, /var/cahce/man/cat?, and /var/cache/man/local/cat?. Additional info: