* include/apr_file_info.h: Clarify pool handling for apr_dir_read and
  apr_dir_pread.

* file_io/win32/dir.c, file_io/os2/dir.c (apr_dir_read): Duplicate the
  returned filename so the call has no side-effects on apr_finfo_t
  structures passed to previous invocations of the function.

* test/testdir.c (test_read_side_effects): Add test case for
  side-effects of apr_dir_read.


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1862435 13f79535-47bb-0310-9956-ffa450edef68
5 files changed