Return-Path: Delivered-To: apmail-apr-bugs-archive@www.apache.org Received: (qmail 11437 invoked from network); 22 Dec 2007 06:51:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Dec 2007 06:51:12 -0000 Received: (qmail 17074 invoked by uid 500); 22 Dec 2007 06:51:01 -0000 Delivered-To: apmail-apr-bugs-archive@apr.apache.org Received: (qmail 17044 invoked by uid 500); 22 Dec 2007 06:51:01 -0000 Mailing-List: contact bugs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apr.apache.org Delivered-To: mailing list bugs@apr.apache.org Received: (qmail 17033 invoked by uid 99); 22 Dec 2007 06:51:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Dec 2007 22:51:01 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Dec 2007 06:50:48 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id DD643714045; Fri, 21 Dec 2007 22:50:51 -0800 (PST) From: bugzilla@apache.org To: bugs@apr.apache.org Subject: DO NOT REPLY [Bug 44129] New: - apr_os_dir_put() does not allocate an entry buffer and fails in apr_stat() due to missing dirname Message-ID: X-Bugzilla-Reason: AssignedTo Date: Fri, 21 Dec 2007 22:50:51 -0800 (PST) X-Virus-Checked: Checked by ClamAV on apache.org 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://issues.apache.org/bugzilla/show_bug.cgi?id=44129 Summary: apr_os_dir_put() does not allocate an entry buffer and fails in apr_stat() due to missing dirname Product: APR Version: HEAD Platform: Other OS/Version: other Status: NEW Severity: enhancement Priority: P2 Component: APR AssignedTo: bugs@apr.apache.org ReportedBy: iwade@optusnet.com.au apr_os_dir_put() does not allocate an entry buffer, this is a bug plain and simple. If it were to allocate that buffer, it would subsequently be unable to call apr_stat() on directory entries if the user requests more than name/type/inode because the dirname field is missing. apr_os_dir_put() does not register a cleanup handler, which would be desirable behaviour in an application which aims to pass ownership of a dirhandle to APR. I have an application which would like to "break out" the apr_stat() that apr_dir_read() does for specialty reasons. To do this I pass in empty wanted flags, but to be able to call apr_stat() in a similar way myself I needed to add apr_dir_name_get() and apr_dir_pool_get(). I have attached a patch against trunk which: a/ adds apr_os_dir_put_ex() which accepts two additional arguments: 1/ dirname 2/ flags - support for APR_DIR_NOCLEANUP (defined with the same value as APR_FILE_NOCLEANUP) b/ re-factor apr_dir_open() and apr_os_dir_put() functions to call apr_os_dir_put_ex() internally. c/ adds two new straight-forward functitons: 1/ apr_dir_name_get() 2/ apr_dir_pool_get() -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org For additional commands, e-mail: bugs-help@apr.apache.org