summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-01-12 01:25:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:51 -0500
commit88a89b31059ac21e09d283f8795cd6ea88c4315c (patch)
tree861785c21ea7de4b2cece2e6236ebc5d97541719 /source
parent9a29bef056f92ef6f1df01f56c121088f84be16b (diff)
downloadsamba-88a89b31059ac21e09d283f8795cd6ea88c4315c.tar.gz
samba-88a89b31059ac21e09d283f8795cd6ea88c4315c.tar.xz
samba-88a89b31059ac21e09d283f8795cd6ea88c4315c.zip
r4697: Fix for bug #2231 inspired by brad.ellis@its.monash.edu.au.
Remove double "\\" from findfirst. Jeremy.
Diffstat (limited to 'source')
-rw-r--r--source/client/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/client/client.c b/source/client/client.c
index 7470a7ba5fd..a0804449985 100644
--- a/source/client/client.c
+++ b/source/client/client.c
@@ -582,17 +582,17 @@ static int cmd_dir(void)
if(mask[strlen(mask)-1]!='\\')
pstrcat(mask,"\\");
} else {
- *mask = '\0';
+ pstrcpy(mask, "\\");
}
if (next_token_nr(NULL,buf,NULL,sizeof(buf))) {
dos_format(p);
if (*p == '\\')
- pstrcpy(mask,p);
+ pstrcpy(mask,p + 1);
else
pstrcat(mask,p);
} else {
- pstrcat(mask,"\\*");
+ pstrcat(mask,"*");
}
do_list(mask, attribute, display_finfo, recurse, True);