From 4a423ff3cab390dc003ca0e7afbe837aa5852bac Mon Sep 17 00:00:00 2001 From: Andrew Shi Date: Fri, 17 Nov 2017 11:53:37 -0800 Subject: [PATCH] Allow non-home tildes on exec path --- launchlib/launcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launchlib/launcher.go b/launchlib/launcher.go index 5400994f..786010fb 100644 --- a/launchlib/launcher.go +++ b/launchlib/launcher.go @@ -27,7 +27,7 @@ const ( TemplateDelimsOpen = "{{" TemplateDelimsClose = "}}" // ExecPathBlackListRegex matches characters disallowed in paths we allow to be passed to exec() - ExecPathBlackListRegex = `[^\w.\/_\-]` + ExecPathBlackListRegex = `^~|[^\w.\/_\-\~]` ) func CompileCmdFromConfigFiles(staticConfigFile, customConfigFile string) (*exec.Cmd, error) {