File toolbox-If-podman-is-not-needed-do-not-check-its-config.patch of Package toolbox

diff --git a/src/pkg/utils/utils_cgo.go b/src/pkg/utils/utils_cgo.go
index 96d7b16..e00fc61 100644
--- a/src/pkg/utils/utils_cgo.go
+++ b/src/pkg/utils/utils_cgo.go
@@ -19,6 +19,7 @@ package utils
 import (
 	"errors"
 	"fmt"
+	"os"
 	"os/user"
 	"unsafe"
 )
@@ -76,6 +77,10 @@ func ValidateSubIDRanges(user *user.User) (bool, error) {
 		return false, errors.New("username ALL not supported")
 	}
 
+	if os.Getenv("IGNORE_SUBUID_SUBGUID") == "" {
+		return true, nil
+	}
+
 	libsubid := C.dlopen(C.TOOLBOX_LIBSUBID, C.RTLD_LAZY)
 	if libsubid == nil {
 		filename := C.GoString(C.TOOLBOX_LIBSUBID)
openSUSE Build Service is sponsored by