Details
-
Bug
-
Resolution: Invalid
-
P1: Critical
-
None
-
5.15, 6.2.2
-
None
Description
QFile::write() returns always success (the number of bytes that should be written) regardless whether the write actually succeeds or not. See the attached error case example for a proof.
How to run it:
- Compile the test kernel module, that creates a sysfs file that always returns EBUSY on write.
- Load the module. A "/sys/devices/qfile/ebusy" file should appear in the filesystem.
- Try "echo test > /sys/devices/qfile/ebusy". You will get an error from the shell.
- Compile the test application.
- Run the test application. You will get no error from QFile::write().
Attachments
Issue Links
- relates to
-
QTBUG-70033 QIODevice::close() should return a boolean (e.g. to handle disk-full situations)
- Reported