diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2022-05-24 12:11:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-24 12:11:43 +0000 |
commit | f98a7d1405066208daf751e247c4d194e49f6231 (patch) | |
tree | 15ce6921feeb684c963f0144a5239cb15d671dd8 /vendor/golang.org/x/sys/unix/ifreq_linux.go | |
parent | 737b100c5e0bf704bae6864621c3cf5eb41df2bf (diff) | |
download | podman-f98a7d1405066208daf751e247c4d194e49f6231.tar.gz podman-f98a7d1405066208daf751e247c4d194e49f6231.tar.bz2 podman-f98a7d1405066208daf751e247c4d194e49f6231.zip |
build(deps): bump github.com/vbauerster/mpb/v7 from 7.4.1 to 7.4.2
Bumps [github.com/vbauerster/mpb/v7](https://github.com/vbauerster/mpb) from 7.4.1 to 7.4.2.
- [Release notes](https://github.com/vbauerster/mpb/releases)
- [Commits](https://github.com/vbauerster/mpb/compare/v7.4.1...v7.4.2)
---
updated-dependencies:
- dependency-name: github.com/vbauerster/mpb/v7
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Diffstat (limited to 'vendor/golang.org/x/sys/unix/ifreq_linux.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/ifreq_linux.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/vendor/golang.org/x/sys/unix/ifreq_linux.go b/vendor/golang.org/x/sys/unix/ifreq_linux.go index 934af313c..15721a510 100644 --- a/vendor/golang.org/x/sys/unix/ifreq_linux.go +++ b/vendor/golang.org/x/sys/unix/ifreq_linux.go @@ -8,7 +8,6 @@ package unix import ( - "bytes" "unsafe" ) @@ -45,13 +44,7 @@ func NewIfreq(name string) (*Ifreq, error) { // Name returns the interface name associated with the Ifreq. func (ifr *Ifreq) Name() string { - // BytePtrToString requires a NULL terminator or the program may crash. If - // one is not present, just return the empty string. - if !bytes.Contains(ifr.raw.Ifrn[:], []byte{0x00}) { - return "" - } - - return BytePtrToString(&ifr.raw.Ifrn[0]) + return ByteSliceToString(ifr.raw.Ifrn[:]) } // According to netdevice(7), only AF_INET addresses are returned for numerous |