Skip to content

Commit 0a441ab

Browse files
jfsmigfvennetier
authored andcommitted
gridinit: Allow brace in config file patterns
The path to subfiles is now expanded closer to the way the shell does.
1 parent 5a03f26 commit 0a441ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main/gridinit.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,13 +1596,13 @@ _cfg_reload(gboolean services_only, GError **err)
15961596
return 0;
15971597
}
15981598
int glob_rc;
1599-
glob_t subfiles_glob;
1600-
1601-
bzero(&subfiles_glob, sizeof(subfiles_glob));
1599+
glob_t subfiles_glob = {};
16021600

16031601
DEBUG("Loading services files matching [%s]", config_subdir);
16041602

1605-
glob_rc = glob(config_subdir, GLOB_NOSORT|GLOB_MARK, notify_error, &subfiles_glob);
1603+
glob_rc = glob(config_subdir,
1604+
GLOB_BRACE|GLOB_NOSORT|GLOB_MARK,
1605+
notify_error, &subfiles_glob);
16061606
if (glob_rc != 0) {
16071607
if (glob_rc == GLOB_NOMATCH)
16081608
NOTICE("Service file pattern matched no file!");

0 commit comments

Comments
 (0)