Merge pull request #1168 from PhoenixMage/32bit-overflow-fix
32bit overflow fix
This commit is contained in:
commit
0fe0a64113
|
|
@ -727,7 +727,7 @@ func mkdirAllWithPermissions(path string, mode os.FileMode, uid, gid int64) erro
|
||||||
}
|
}
|
||||||
if uid > math.MaxUint32 || gid > math.MaxUint32 {
|
if uid > math.MaxUint32 || gid > math.MaxUint32 {
|
||||||
// due to https://github.com/golang/go/issues/8537
|
// due to https://github.com/golang/go/issues/8537
|
||||||
return errors.New(fmt.Sprintf("Numeric User-ID or Group-ID greater than %v are not properly supported.", math.MaxUint32))
|
return errors.New(fmt.Sprintf("Numeric User-ID or Group-ID greater than %v are not properly supported.", uint64(math.MaxUint32)))
|
||||||
}
|
}
|
||||||
if err := os.Chown(path, int(uid), int(gid)); err != nil {
|
if err := os.Chown(path, int(uid), int(gid)); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue