mirror of
https://github.com/containers/podman.git
synced 2025-12-04 04:09:40 +08:00
short-name aliasing
Add support for short-name aliasing. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
5
vendor/github.com/containers/buildah/copier/xattrs.go
generated
vendored
5
vendor/github.com/containers/buildah/copier/xattrs.go
generated
vendored
@@ -45,6 +45,11 @@ func Lgetxattrs(path string) (map[string]string, error) {
|
||||
listSize *= 2
|
||||
continue
|
||||
}
|
||||
if (unwrapError(err) == syscall.ENOTSUP) || (unwrapError(err) == syscall.ENOSYS) {
|
||||
// treat these errors listing xattrs as equivalent to "no xattrs"
|
||||
list = list[:0]
|
||||
break
|
||||
}
|
||||
return nil, errors.Wrapf(err, "error listing extended attributes of %q", path)
|
||||
}
|
||||
list = list[:size]
|
||||
|
||||
Reference in New Issue
Block a user