summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fopen.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2003-07-29 00:17:29 +0000
committertjr <tjr@FreeBSD.org>2003-07-29 00:17:29 +0000
commitf4b299adc08466d37a9882c6460ecce0a1505a45 (patch)
tree4f9da5e34efed285c8df8fbf5b49b547d23442c5 /lib/libc/stdio/fopen.c
parente669733309fbc4dc64ccfd18e35a59f5075138e7 (diff)
downloadFreeBSD-src-f4b299adc08466d37a9882c6460ecce0a1505a45.zip
FreeBSD-src-f4b299adc08466d37a9882c6460ecce0a1505a45.tar.gz
Fix a problem that occurs when truncating files on NFSv3 mounts: we need
to set np->n_size back to the desired size again after calling nfs_meta_setsize(), since it could end up in nfs_loadattrcache() getting called, which would change n_size back to the value it had before the truncate request was issued. The result of this bug is that the size info cached in the nfsnode becomes incorrect, lseek(fd, ofs, SEEK_END) seeks past the end of the file, stat() returns the wrong size, etc. PR: 41792 MFC after: 2 weeks
Diffstat (limited to 'lib/libc/stdio/fopen.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud