serve docker: fix incorrect GID assignment
Some checks are pending
Docker beta build / Build image job (push) Waiting to run

This commit is contained in:
TAKEI Yuya 2025-01-03 15:05:09 +09:00 committed by albertony
parent a389a2979b
commit aa743cbc60

View File

@ -293,7 +293,7 @@ func getVFSOption(vfsOpt *vfscommon.Options, opt rc.Params, key string) (ok bool
intVal, err = opt.GetInt64(key)
if err == nil {
if intVal >= 0 && intVal <= math.MaxUint32 {
vfsOpt.UID = uint32(intVal)
vfsOpt.GID = uint32(intVal)
} else {
err = fmt.Errorf("key %q (%v) overflows uint32", key, intVal)
}