mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
FsMagic should avoid sign extension on i686
`uint64(buf.Type)` on i686 is ffffffff9123683e on i686 due to sign extension, so it cannot be compared with `FsMagic(0x9123683E)` Signed-off-by: Andrii Melnykov <andy.melnikov@gmail.com>
This commit is contained in:
parent
3fbf723e81
commit
c754555b87
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ import (
|
||||||
"github.com/docker/docker/pkg/archive"
|
"github.com/docker/docker/pkg/archive"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FsMagic uint64
|
type FsMagic uint32
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FsMagicBtrfs = FsMagic(0x9123683E)
|
FsMagicBtrfs = FsMagic(0x9123683E)
|
||||||
|
|
Loading…
Reference in a new issue