summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-01-08 15:41:49 -0800
committerJeremy Allison <jra@samba.org>2009-01-08 15:41:49 -0800
commit590c9b7b6df643f0ff3e8f36bdc535ef00b30073 (patch)
tree63208eeaca84fbcc7b58f829ef5f82f36d0898df /source3/libsmb
parent84292022bf801112d2cb7f0f8512cf00079def20 (diff)
downloadsamba-590c9b7b6df643f0ff3e8f36bdc535ef00b30073.tar.gz
samba-590c9b7b6df643f0ff3e8f36bdc535ef00b30073.tar.bz2
samba-590c9b7b6df643f0ff3e8f36bdc535ef00b30073.zip
Fix bug #6021 - smbclient du command does not recuse properly
Jeremy.
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clidfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c
index ac68700fd0..211aca2bd8 100644
--- a/source3/libsmb/clidfs.c
+++ b/source3/libsmb/clidfs.c
@@ -308,10 +308,11 @@ static void cli_cm_set_mntpoint(struct cli_state *c, const char *mnt)
}
if (p) {
- char *name = clean_name(NULL, p->mount);
+ char *name = clean_name(NULL, mnt);
if (!name) {
return;
}
+ TALLOC_FREE(p->mount);
p->mount = talloc_strdup(p, name);
TALLOC_FREE(name);
}