fix staticcheck linter warning for deprecated function
fix staticcheck linter warning for deprecated function

Port of fix from podman-land:
https://github.com/containers/podman/commit/62f4ae98fb73065063c05f45663b1fadbcb269c9

Thanks to pholzing@redhat.com for figuring this out.

[NO NEW TESTS NEEDED]

Signed-off-by: Chris Evich <352d8596d782a469eafa66a46434e15a449859ce@redhat.com>

nalind/buildah-1,nalind/buildah-1,TomSweeneyRedHat/buildah,TomSweeneyRedHat/buildah,TomSweeneyRedHat/buildah,nalind/buildah-1