summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSijmen J. Mulder <ik@sjmulder.nl>2018-06-15 11:10:25 +0200
committerSijmen J. Mulder <ik@sjmulder.nl>2018-06-15 11:10:25 +0200
commit50ac6b8708688ea7f1cbe7e4ad9f3401bc37a237 (patch)
treee4440e52922201beb9c3cceeebd19e30fcb81d47 /src
parent9240d98831456555ede14468be7f2af3b85c234d (diff)
Fix missing call to wordexp()
Diffstat (limited to 'src')
-rw-r--r--src/cmds_command.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmds_command.c b/src/cmds_command.c
index 3194e47..ad45a82 100644
--- a/src/cmds_command.c
+++ b/src/cmds_command.c
@@ -430,6 +430,7 @@ void do_commandmode(struct block * sb) {
#ifdef NO_WORDEXP
name_ok = 1;
#else
+ wordexp(name, &p, 0);
if ( p.we_wordc < 1 ) {
sc_error("Failed expanding filepath");
} else if ( strlcpy(name, p.we_wordv[0], sizeof(name))