summaryrefslogtreecommitdiff
path: root/sysctl.c
diff options
context:
space:
mode:
authorJaromir Capik <jcapik@redhat.com>2014-07-16 14:29:42 +0200
committerJaromir Capik <jcapik@redhat.com>2014-07-16 14:29:42 +0200
commitf8128568d671d2c07b7d2faf0bc399fb9b7bd69e (patch)
tree9cac3cb5eb07256e8742975015c5a3bdc31815cb /sysctl.c
parentb779855cf15d68f9038ff1809db18c0788e9ae70 (diff)
downloadprocps-ng-f8128568d671d2c07b7d2faf0bc399fb9b7bd69e.tar.gz
sysctl: support expansion of csh style braces with -p
This commit adds the GLOB_BRACE flag in the glob flags. That allows to expand the csh style braces {a,b} and define multiple independent patterns for config file locations.
Diffstat (limited to 'sysctl.c')
-rw-r--r--sysctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysctl.c b/sysctl.c
index fc224e5..bc83b50 100644
--- a/sysctl.c
+++ b/sysctl.c
@@ -502,7 +502,7 @@ static int Preload(const char *restrict const filename)
int globerr;
int j;
- globerr = glob(filename, GLOB_NOCHECK | GLOB_TILDE, NULL, &globbuf);
+ globerr = glob(filename, GLOB_NOCHECK | GLOB_TILDE | GLOB_BRACE, NULL, &globbuf);
if (globerr != 0 && globerr != GLOB_NOMATCH)
xerr(EXIT_FAILURE, _("glob failed"));