diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/acme/exec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/acme/exec.c b/src/cmd/acme/exec.c index 85ef69a5..ddc28a82 100644 --- a/src/cmd/acme/exec.c +++ b/src/cmd/acme/exec.c @@ -476,6 +476,8 @@ getname(Text *t, Text *argt, Rune *arg, int narg, int isput) r = runemalloc(dir.nr+n+1); runemove(r, dir.r, dir.nr); free(dir.r); + if(dir.nr>0 && r[dir.nr]!='/' && n>0 && arg[0]!='/') + r[dir.nr++] = '/'; runemove(r+dir.nr, arg, n); n += dir.nr; }else{ |