diff options
author | Alexander Mohr <alexander.m.mohr@daimler.com> | 2021-07-29 12:55:23 +0200 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2021-08-06 14:08:23 +0900 |
commit | 5379928defc81fc3826d84a634893c27394da59f (patch) | |
tree | d060aeeab7dc6b1005fe339dc67e6836ac951ebd /gtest-1.7.0/xcode/Config | |
parent | 655f8caa782742ec1565dd8683422dce8fa3f29a (diff) | |
download | DLT-daemon-5379928defc81fc3826d84a634893c27394da59f.tar.gz |
file-transfer: Abort file transfer if get serial number failed
If a file is deleted while a file transfer is ongoing,
the file transfer tries to seek through the whole file.
This is due to the fact the the file handle is held open.
getFileSerialNumber is already validating the file
by using stat.
If this call returns a negative value, we know
that a stat to the file is not possible anymore,
therefore further reading can be aborted.
Diffstat (limited to 'gtest-1.7.0/xcode/Config')
0 files changed, 0 insertions, 0 deletions