mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-24 04:54:00 +00:00
7e0cd45b1c
This change updates the create-symlinks hook to always evaluate link paths in the container's root filesystem. In addition the executable is updated to return an error if a link could not be created. Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
12 lines
592 B
Go
12 lines
592 B
Go
// Package symlink implements [FollowSymlinkInScope] which is an extension
|
|
// of [path/filepath.EvalSymlinks], as well as a Windows long-path aware
|
|
// version of [path/filepath.EvalSymlinks] from the Go standard library.
|
|
//
|
|
// The code from [path/filepath.EvalSymlinks] has been adapted in fs.go.
|
|
// Read the [LICENSE.BSD] file that governs fs.go and [LICENSE.APACHE] for
|
|
// fs_unix_test.go.
|
|
//
|
|
// [LICENSE.APACHE]: https://github.com/moby/sys/blob/symlink/v0.2.0/symlink/LICENSE.APACHE
|
|
// [LICENSE.BSD]: https://github.com/moby/sys/blob/symlink/v0.2.0/symlink/LICENSE.APACHE
|
|
package symlink
|