summaryrefslogtreecommitdiffstats
path: root/source/client
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-01-08 15:42:38 -0800
committerKarolin Seeger <kseeger@samba.org>2009-01-12 09:38:20 +0100
commitc0d6fd9204da08b01fe08053ee16fed013640ccf (patch)
tree4916880e76c9aeb51fd96f652f459c63f7f6187e /source/client
parent4ac5552f257f59c2853c6dcc1d96758db89fbd4e (diff)
downloadsamba-c0d6fd9204da08b01fe08053ee16fed013640ccf.tar.gz
samba-c0d6fd9204da08b01fe08053ee16fed013640ccf.tar.xz
samba-c0d6fd9204da08b01fe08053ee16fed013640ccf.zip
Fix bug #6021 - smbclient du command does not recuse properly
Jeremy. (cherry picked from commit 935173a514bf54ebdf6269e872adfb86a9625f27)
Diffstat (limited to 'source/client')
-rw-r--r--source/client/client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/client/client.c b/source/client/client.c
index 4d7085e5a45..df92bae26f8 100644
--- a/source/client/client.c
+++ b/source/client/client.c
@@ -728,11 +728,11 @@ static void do_list_helper(const char *mntpoint, file_info *f, const char *mask,
return;
}
p = strrchr_m(mask2,CLI_DIRSEP_CHAR);
- if (!p) {
- TALLOC_FREE(dir);
- return;
+ if (p) {
+ p[1] = 0;
+ } else {
+ mask2[0] = '\0';
}
- p[1] = 0;
mask2 = talloc_asprintf_append(mask2,
"%s%s*",
f->name,