From b72d77b891de97e7b71962c7647eea70f798a0ad Mon Sep 17 00:00:00 2001 From: xSmurf Date: Fri, 26 Jun 2015 20:28:50 +0000 Subject: [PATCH] Unsetenv > Setenv "" as the former is unavailable in golang 1.3 --- fs/resolve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/resolve.go b/fs/resolve.go index bde6f0e..3d628a7 100644 --- a/fs/resolve.go +++ b/fs/resolve.go @@ -33,7 +33,7 @@ func resolveVars(p string, u *user.User) (string, error) { } resolved, err := exec.LookPath(p[len(pathVar):]) if emptyPath { - os.Unsetenv("PATH") + os.Setenv("PATH", "") // Do not use Unsetenv, incompatible with golang 1.3 } if err != nil { return "", fmt.Errorf("failed to resolve %s", p)