summaryrefslogtreecommitdiff
path: root/vendor/github.com/moby
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2022-04-14 10:02:35 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2022-04-14 14:35:46 -0400
commitd68e9faee20a1032e6a425f3fcc253f948f9c736 (patch)
tree585ee9fb710beaa23f044b28d8ea274ce82fd636 /vendor/github.com/moby
parent53b984f20fef3a66269029f10c6cd16d7b80fd4e (diff)
downloadpodman-d68e9faee20a1032e6a425f3fcc253f948f9c736.tar.gz
podman-d68e9faee20a1032e6a425f3fcc253f948f9c736.tar.bz2
podman-d68e9faee20a1032e6a425f3fcc253f948f9c736.zip
Update vendor of storage,common
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'vendor/github.com/moby')
-rw-r--r--vendor/github.com/moby/sys/mountinfo/mounted_unix.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/vendor/github.com/moby/sys/mountinfo/mounted_unix.go b/vendor/github.com/moby/sys/mountinfo/mounted_unix.go
index 45ddad236..242f82cc7 100644
--- a/vendor/github.com/moby/sys/mountinfo/mounted_unix.go
+++ b/vendor/github.com/moby/sys/mountinfo/mounted_unix.go
@@ -4,7 +4,6 @@
package mountinfo
import (
- "fmt"
"os"
"path/filepath"
@@ -33,13 +32,13 @@ func mountedByStat(path string) (bool, error) {
func normalizePath(path string) (realPath string, err error) {
if realPath, err = filepath.Abs(path); err != nil {
- return "", fmt.Errorf("unable to get absolute path for %q: %w", path, err)
+ return "", err
}
if realPath, err = filepath.EvalSymlinks(realPath); err != nil {
- return "", fmt.Errorf("failed to canonicalise path for %q: %w", path, err)
+ return "", err
}
if _, err := os.Stat(realPath); err != nil {
- return "", fmt.Errorf("failed to stat target of %q: %w", path, err)
+ return "", err
}
return realPath, nil
}