Return-Path: Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 13096 invoked by uid 500); 10 Jul 2003 15:04:00 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: "Apache HTTPD Bugs Notification List" Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 13059 invoked from network); 10 Jul 2003 15:04:00 -0000 Date: 10 Jul 2003 15:06:30 -0000 Message-ID: <20030710150630.9881.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: bugs@httpd.apache.org Cc: Subject: DO NOT REPLY [Bug 21330] - it appears that calling apr_file_open with APR_TRUNCATE doesn't truncate the file as expected. X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21330 it appears that calling apr_file_open with APR_TRUNCATE doesn't truncate the file as expected. ------- Additional Comments From trawick@apache.org 2003-07-10 15:06 ------- I just did a test of truncation on Solaris 8 and it worked for me. We'll need to know how you are calling apr_file_open(), but first: Please try this updated version of srclib/apr/test/testfile.c with your 2.0.46 source tree: http://www.apache.org/~trawick/testfile.c I just added a test of APR_TRUNCATE to see if I could hit a truncation problem. To try it out: copy the file into srclib/apr/test cd srclib/apr/test make testall ./testall -v testfile Let us know whether or not it works on your box, and if this test works let us know how your testcase is different. (Compare with function test_truncate() in the new testfile.c mentioned above.) Thanks! --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org