Skip to content

Commit

Permalink
symlink: format with go 1.19
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Aug 27, 2022
1 parent fdb3085 commit 84f96a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions symlink/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ func FollowSymlinkInScope(path, root string) (string, error) {
// Trying to break out from `root` does not constitute an error.
//
// Example:
// If /foo/bar -> /outside,
// FollowSymlinkInScope("/foo/bar", "/foo") == "/foo/outside" instead of "/outside"
//
// If /foo/bar -> /outside,
// FollowSymlinkInScope("/foo/bar", "/foo") == "/foo/outside" instead of "/outside"
//
// IMPORTANT: it is the caller's responsibility to call evalSymlinksInScope *after* relevant symlinks
// are created and not to create subsequently, additional symlinks that could potentially make a
Expand Down

0 comments on commit 84f96a1

Please sign in to comment.