Bug 45496 - [patch] adding directory matching [dir/**/conf.d/*.conf] to apr_fnmatch
Summary: [patch] adding directory matching [dir/**/conf.d/*.conf] to apr_fnmatch
Status: NEW
Alias: None
Product: APR
Classification: Unclassified
Component: APR (show other bugs)
Version: HEAD
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords:
Depends on:
Blocks: 45160
  Show dependency tree
 
Reported: 2008-07-29 05:51 UTC by rahul
Modified: 2013-09-30 05:55 UTC (History)
0 users



Attachments
adding directory globbing. (4.42 KB, patch)
2008-07-29 05:51 UTC, rahul
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rahul 2008-07-29 05:51:57 UTC
Created attachment 22325 [details]
adding directory globbing.

A patch (First cut) to add directory matching to apr_fnmatch.h,
The function can match wildcards like dir/**/conf.d/*.conf
which is not possible with the current function apr_match_glob

- I could not find a way to determine the current file separator, or how to
check if it is starting on root path if it is on non-unix systems.
would appreciate any help.
Comment 1 Ben RUBSON 2013-09-30 05:55:14 UTC
This patch works perfectly fine !
I use it on my Debian Wheezy (7 / stable) production box.
It helps me to include a variable amount of configuration files (several dozens), each one located in its own sub-directory.
Perfect, thank you very much !