mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-16 19:04:53 +08:00
Fix a race condition in which a file opened with O_TRUNC is made available to other file functions expecting a file descriptor before the truncation is performed. This is only possible if the other thread was using an invalid file descriptor as the open call has yet to finish. Closes #5109