diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2022-04-14 10:02:35 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2022-04-14 14:35:46 -0400 |
commit | d68e9faee20a1032e6a425f3fcc253f948f9c736 (patch) | |
tree | 585ee9fb710beaa23f044b28d8ea274ce82fd636 /vendor/github.com/moby/sys | |
parent | 53b984f20fef3a66269029f10c6cd16d7b80fd4e (diff) | |
download | podman-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/sys')
-rw-r--r-- | vendor/github.com/moby/sys/mountinfo/mounted_unix.go | 7 |
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 } |