summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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))