Red Hat Bugzilla – Bug 1276660
Wildcard patterns in command arguments not expanded
Last modified: 2016-01-07 06:53:32 EST
+++ This bug was initially created as a clone of Bug #1276652 +++
Description of problem:
Some plugins collect the output of commands with paths containing a wildcard expression in their arguments. These wildcards are never expanded.
For instance, ipa plugin collects the output of the following command:
ls -la /etc/dirsrv/slapd-*/schema
Having created a sample directory matching this pattern, the actual output of the ls command is:
# ls -la /etc/dirsrv/slapd-*/schema/
drwxr-xr-x. 2 root root 4096 Oct 30 07:07 .
drwxr-xr-x. 3 root root 4096 Oct 30 07:07 ..
What sosreport collects, however, looks like this:
# cat sosreport-blabla/sos_commands/ipa/ls_-la_.etc.dirsrv.slapd-_.schema
ls: cannot access /etc/dirsrv/slapd-*/schema/: No such file or directory
There are other plugins affected by this bug, so far I know about md and smartcard.
This bug was not present sos-2.2-68.el6.noarch.
Version-Release number of selected component (if applicable):
Looks like this was already reported before.
*** This bug has been marked as a duplicate of bug 1195083 ***