Skip to content

Commit

Permalink
do_shell_expansion for default string only when it does not starts wi…
Browse files Browse the repository at this point in the history
…th a |
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent 41288bd commit 75930b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/parse_conf.c
Expand Up @@ -246,7 +246,9 @@ static inline void init_resource(CONFIG *config, int type, RES_ITEM *items, int
char pathname[MAXSTRING];

bstrncpy(pathname, items[i].default_value, sizeof(pathname));
do_shell_expansion(pathname, sizeof(pathname));
if (pathname[0] != '|') {
do_shell_expansion(pathname, sizeof(pathname));
}
*items[i].value = bstrdup(pathname);
} else if (items[i].handler == store_addresses) {
init_default_addresses((dlist **)items[i].value, items[i].default_value);
Expand Down

0 comments on commit 75930b2

Please sign in to comment.