aboutsummaryrefslogtreecommitdiff
path: root/src/path/filepath/symlink.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/path/filepath/symlink.go')
-rw-r--r--src/path/filepath/symlink.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/path/filepath/symlink.go b/src/path/filepath/symlink.go
index a08b85a29c..4b41039e25 100644
--- a/src/path/filepath/symlink.go
+++ b/src/path/filepath/symlink.go
@@ -8,7 +8,6 @@ import (
"errors"
"os"
"runtime"
- "syscall"
)
func walkSymlinks(path string) (string, error) {
@@ -79,7 +78,7 @@ func walkSymlinks(path string) (string, error) {
if fi.Mode()&os.ModeSymlink == 0 {
if !fi.Mode().IsDir() && end < len(path) {
- return "", syscall.ENOTDIR
+ return "", slashAfterFilePathError
}
continue
}