]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r336587:
authorasomers <asomers@FreeBSD.org>
Mon, 1 Oct 2018 15:43:56 +0000 (15:43 +0000)
committerasomers <asomers@FreeBSD.org>
Mon, 1 Oct 2018 15:43:56 +0000 (15:43 +0000)
commit70a8b6d45b2970b9c00a49d98a77e245150c10f8
treec3e14fe97cac590a2a005f8b0d6070f85c5dcb9d
parent0189e926fcc3e14bd4c09c51208bb97ebcd8ed62
MFC r336587:

tftpd(8): when completing an WRQ, flush the file before acknowleding receipt

tftpd(8) should flush a newly written file to disk before ACKing the final DATA
packet.  Otherwise there is a narrow race window when a subsequent read may not
see the file.  This is somewhat related to r330710, but the race window is much
smaller.  Hopefully this will fix the intermittent tests in Jenkins.

Reported by: Jenkins
libexec/tftpd/tftp-transfer.c