aboutsummaryrefslogtreecommitdiffhomepage
path: root/sandbox/path.go
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/path.go')
-rw-r--r--sandbox/path.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/sandbox/path.go b/sandbox/path.go
index 6c5a6e2c..4057748d 100644
--- a/sandbox/path.go
+++ b/sandbox/path.go
@@ -26,25 +26,6 @@ func toHost(name string) string {
return path.Join(hostPath, name)
}
-func realpathHost(name string) (string, error) {
- source := toHost(name)
- rp, err := os.Readlink(source)
-
- if err != nil {
- if errors.Is(err, syscall.EINVAL) {
- // not a symlink
- return name, nil
- }
- return "", err
- }
-
- if !path.IsAbs(rp) {
- return name, nil
- }
- msg.Verbosef("path %q resolves to %q", name, rp)
- return rp, nil
-}
-
func createFile(name string, perm os.FileMode, content []byte) error {
if err := os.MkdirAll(path.Dir(name), 0755); err != nil {
return err