aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-17 09:53:10 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-17 09:53:10 +0100
commit8b800f6c9d862009684ce52d0007da08f46e748d (patch)
treee05d51f7dc24011393ec3b28ef95dc282e1e7425 /lib
parent715e52f2b5bcb4c195039e1269c872bc8761a3c6 (diff)
Fixed spaces handling in RPath - SPEC1116
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'lib')
-rw-r--r--lib/apiv1/exec.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/apiv1/exec.go b/lib/apiv1/exec.go
index fd0f8bb..de40c70 100644
--- a/lib/apiv1/exec.go
+++ b/lib/apiv1/exec.go
@@ -135,7 +135,7 @@ func (s *APIService) execCmd(c *gin.Context) {
}
}
- cmd = append(cmd, "cd", fld.GetFullPath(args.RPath))
+ cmd = append(cmd, "cd", "\""+fld.GetFullPath(args.RPath)+"\"")
// FIXME - add 'exec' prevents to use syntax:
// xds-exec -l debug -c xds-config.env -- "cd build && cmake .."
// but exec is mandatory to allow to pass correctly signals