Skip to content

Commit 8dd4b4d

Browse files
authored
Merge pull request #1 from ericwj/ericwj-evilsymlinks
path/filepath: fix EvalSymLink documentation
2 parents 3cc44f4 + c22d035 commit 8dd4b4d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/path/filepath/path.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,12 @@ func Ext(path string) string {
230230
// If path is relative the result will be relative to the current directory,
231231
// unless one of the components is an absolute symbolic link.
232232
// EvalSymlinks calls Clean on the result.
233+
// Use of this function is unsuitable for applications.
234+
// This function always resolves all links on path, but links introduce
235+
// indirections that may solve problems that are not the concern of applications
236+
// and of which applications should remain unaware unless they perform
237+
// system administrative tasks on behalf of the user in which case they should
238+
// resolve only those links that they create, manage and delete.
233239
func EvalSymlinks(path string) (string, error) {
234240
return evalSymlinks(path)
235241
}

0 commit comments

Comments
 (0)