From: Sebastien Douheret Date: Fri, 17 Nov 2017 08:53:10 +0000 (+0100) Subject: Fixed spaces handling in RPath - SPEC1116 X-Git-Tag: v1.0.0-rc1~12^2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fxds%2Fxds-server.git;a=commitdiff_plain;h=8b800f6c9d862009684ce52d0007da08f46e748d Fixed spaces handling in RPath - SPEC1116 Signed-off-by: Sebastien Douheret --- 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