Honor trailing slash in rpmGlob()
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 27 Jun 2011 11:09:17 +0000 (14:09 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 27 Jun 2011 11:09:17 +0000 (14:09 +0300)
commit65e88045ba80b175418b865fe4c4a88d48c00189
treefcd5b06404b2e28b56dee4ba8e2aa715f08eae72
parentaedbf1d63f94cee312b283503c8deb1ede1895a1
Honor trailing slash in rpmGlob()

- Only return directories if a pattern contains a trailing slash.
  Use GLOB_ONLYDIR hint if available but as this is unreliable,
  we need to stat the paths to be sure.
- Hysterically enough, rpm bundles its own copy of glob() which does
  have GLOB_ONLYDIR but ATM it doesn't get build because HAVE_D_TYPE
  isn't defined outside glibc build environment which is where our glob
  originally came from...
rpmio/rpmfileutil.c