Package: mtools
Version: 4.0.23-1

Running e.g. mdir -i $SOMEFILE@@$LARGEOFFSET fails when the offset
exceeds around 2GB. The error message is:

| seek: Invalid argument
| init :: could not read boot sector
| Cannot initialize '::'

Using strace one can see that mtools tries to seek the image to a
negative offset that results from treating the desired offset as a
signed 32bit number.

The problem was only observed on armhf and could not be reproduced on
amd64.

Most likely, it can be fixed by adding -D_FILE_OFFSET_BITS=64 to the
CFLAGS.

Helmut

Reply via email to