mirror of
https://github.com/containers/podman.git
synced 2025-11-29 09:37:38 +08:00
Update github.com/containers/psgo digest to 533b50b
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
2
vendor/github.com/containers/psgo/internal/capabilities/capabilities.go
generated
vendored
2
vendor/github.com/containers/psgo/internal/capabilities/capabilities.go
generated
vendored
@@ -79,7 +79,7 @@ var (
|
||||
// the kernel.
|
||||
func TranslateMask(mask uint64) []string {
|
||||
caps := []string{}
|
||||
for i := uint(0); i < 64; i++ {
|
||||
for i := range uint(64) {
|
||||
if (mask>>i)&0x1 == 1 {
|
||||
c, known := capabilities[i]
|
||||
if !known {
|
||||
|
||||
2
vendor/github.com/containers/psgo/internal/proc/cmdline.go
generated
vendored
2
vendor/github.com/containers/psgo/internal/proc/cmdline.go
generated
vendored
@@ -28,7 +28,7 @@ func ParseCmdLine(pid string) ([]string, error) {
|
||||
}
|
||||
|
||||
cmdLine := []string{}
|
||||
for _, rawCmd := range bytes.Split(data, []byte{0}) {
|
||||
for rawCmd := range bytes.SplitSeq(data, []byte{0}) {
|
||||
cmdLine = append(cmdLine, string(rawCmd))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user