OSDN Git Service

prioritize file entry stat over fd stat
authorIvailo Monev <xakepa10@gmail.com>
Sun, 27 Mar 2022 12:52:03 +0000 (15:52 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Sun, 27 Mar 2022 12:55:21 +0000 (15:55 +0300)
commit4a83c75544ae8edc7f8a31ae303b3aa13099dbef
treea91d2c3f8aa434b465d3dc4aa8e6f469e70029f0
parent3c5ef26eeb83b618eb6c1891d69d17a16c70432e
prioritize file entry stat over fd stat

fixes QFile::size() for links and consequently QFile::atEnd() for
links, for QFile opened from fd or FILE* it will still report the
size of the link tho since such QFile objects do not have file entry

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/io/qfsfileengine_unix.cpp
tests/auto/qfile/testlink.txt [new symlink]
tests/auto/qfile/tst_qfile.cpp