diff options
Diffstat (limited to 'src/pkg/path/filepath/path.go')
| -rw-r--r-- | src/pkg/path/filepath/path.go | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/src/pkg/path/filepath/path.go b/src/pkg/path/filepath/path.go index 541a23306..6917218db 100644 --- a/src/pkg/path/filepath/path.go +++ b/src/pkg/path/filepath/path.go @@ -9,6 +9,7 @@ package filepath  import (  	"bytes"  	"os" +	"runtime"  	"sort"  	"strings"  ) @@ -178,6 +179,14 @@ func Ext(path string) string {  // links.  // If path is relative it will be evaluated relative to the current directory.  func EvalSymlinks(path string) (string, os.Error) { +	if runtime.GOOS == "windows" { +		// Symlinks are not supported under windows. +		_, err := os.Lstat(path) +		if err != nil { +			return "", err +		} +		return Clean(path), nil +	}  	const maxIter = 255  	originalPath := path  	// consume path by taking each frontmost path element, | 
