K 10 svn:author V 8 mckusick K 8 svn:date V 27 2000-07-04T03:34:11.000000Z K 7 svn:log V 422 Move the truncation code out of vn_open and into the open system call after the acquisition of any advisory locks. This fix corrects a case in which a process tries to open a file with a non-blocking exclusive lock. Even if it fails to get the lock it would still truncate the file even though its open failed. With this change, the truncation is done only after the lock is successfully acquired. Obtained from: BSD/OS END