Revert check for file size to a warning in QFile::map
commit095c92f03e0c01b878eaa0cd1b7844171ce9241f
authorJoão Abecasis <joao@abecasis.name>
Thu, 19 Nov 2009 16:15:03 +0000 (19 17:15 +0100)
committerJoão Abecasis <joao@abecasis.name>
Thu, 19 Nov 2009 16:40:53 +0000 (19 17:40 +0100)
tree65ba06ca2e2aa7260ab3adfa9a7c88672b88bd92
parent45e49fc7a325855c6eafa83b85f5ddfdf793c118
Revert check for file size to a warning in QFile::map

The check, introduced in c66de8a19b558e14097c402480eeabf0b5ec2351,
changes behavior and it is not clear whether we should prevent
mmaping beyond EOF. FWIW, python prevents it.

Leaving a warning in there for now so as not to break applications that
depend on the feature.

Task-number: QTBUG-6008
Reviewed-by: Thiago Macieira
src/corelib/io/qfsfileengine_unix.cpp