diff options
author | Jaromir Capik <jcapik@redhat.com> | 2014-07-16 14:29:42 +0200 |
---|---|---|
committer | Jaromir Capik <jcapik@redhat.com> | 2014-07-16 14:29:42 +0200 |
commit | f8128568d671d2c07b7d2faf0bc399fb9b7bd69e (patch) | |
tree | 9cac3cb5eb07256e8742975015c5a3bdc31815cb /sysctl.c | |
parent | b779855cf15d68f9038ff1809db18c0788e9ae70 (diff) | |
download | procps-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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")); |