Revert check for file size to a warning in QFile::map
commitfc5a9af7c6470646b82546ec2e5e37f68d4d238d
authorJoão Abecasis <joao@abecasis.name>
Thu, 19 Nov 2009 16:15:03 +0000 (19 17:15 +0100)
committerJason McDonald <jason.mcdonald@nokia.com>
Mon, 23 Nov 2009 12:14:54 +0000 (23 22:14 +1000)
tree67ef3e383f15dc74ef6783125f36dc0d78f14a16
parent6adeb8be007bfdeaeb7e1d4a730abf32dbdb0f7d
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
(cherry picked from commit 095c92f03e0c01b878eaa0cd1b7844171ce9241f)
src/corelib/io/qfsfileengine_unix.cpp