Barry Pederson <email@example.com>
r840733 | kfogel | 2001-12-17 22:55:28 +0000 (Mon, 17 Dec 2001)
Fix for issue #566. This patch fixes a problem that keeps svn
"import" from working Win32.
Patch by: Barry Pederson <firstname.lastname@example.org>
When apr_read_dir() is called with APR_FINFO_NORM under Win32, it
returns APR_INCOMPLETE instead of APR_SUCCESS, because the
APR_FINFO_NORM bitmask includes bits indicating you want dev and inode
info, and those aren't available on the Win32 platform.
With this patch, we ask only for name and type info, which is all we
require. That works for all platforms, and is consistent with how we
already call apr_read_dir() in libsvn_subr/io.c.
* subversion/libsvn_client/add.c (add_dir_recursive): Request only the
needed information in calls to apr_dir_read().
* subversion/libsvn_client/commit.c (import_dir): Same.