From f8128568d671d2c07b7d2faf0bc399fb9b7bd69e Mon Sep 17 00:00:00 2001 From: Jaromir Capik Date: Wed, 16 Jul 2014 14:29:42 +0200 Subject: 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. --- sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysctl.c') 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")); -- cgit v1.2.1