Red Hat Bugzilla – Bug 1069625
httpd.conf uses icon bomb.gif for all files/dirs ending with core
Last modified: 2016-04-18 06:26:39 EDT
Description of problem: The line AddIcon /icons/bomb.gif core matches all files ending with "core" like a file name "Score" and not only a file named "core". I think it should be AddIcon /icons/bomb.gif /core to match only "/core" (path is relative).
I would like to point out that starting from 2.4 kernel, core dump files are named core.<PID> by default (this behaviour can be customised by modifying files /proc/sys/kernel/core_pattern and /proc/sys/kernel/core_uses_pid accordingly). Such files are, however, still not displayed with the bomb icon in directory listings. In order to support both naming patterns, the original line in httpd.conf should be split into two (at least I have not been able to think of a better solution): AddIcon /icons/bomb.gif /core AddIcon /icons/bomb.gif */core.*
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-1249.html