aboutsummaryrefslogtreecommitdiffstats
path: root/subversion/libsvn_client/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'subversion/libsvn_client/list.c')
-rw-r--r--subversion/libsvn_client/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subversion/libsvn_client/list.c b/subversion/libsvn_client/list.c
index 78433c337e58..d52de6d10ac3 100644
--- a/subversion/libsvn_client/list.c
+++ b/subversion/libsvn_client/list.c
@@ -394,7 +394,7 @@ list_internal(const char *path_or_url,
svn_membuf__create(&scratch_buffer, 256, pool);
/* Report the dirent for the target. */
- if (match_patterns(svn_dirent_dirname(fs_path, pool), patterns,
+ if (match_patterns(svn_dirent_basename(fs_path, pool), patterns,
&scratch_buffer))
SVN_ERR(list_func(baton, "", dirent, locks
? (svn_hash_gets(locks, fs_path))