summaryrefslogtreecommitdiffstats
path: root/source/client
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-01-21 18:47:55 +0000
committerGerald Carter <jerry@samba.org>2005-01-21 18:47:55 +0000
commit0ff19b2807e92b9abd3fc8cd716dd19284e93af9 (patch)
tree2f2b58e05c853b1a47f2d73e398da1cbd22fc8fc /source/client
parentf1f54e8731e7cf45a849d3c7bd6d7eee6f9b33b7 (diff)
downloadsamba-0ff19b2807e92b9abd3fc8cd716dd19284e93af9.tar.gz
samba-0ff19b2807e92b9abd3fc8cd716dd19284e93af9.tar.xz
samba-0ff19b2807e92b9abd3fc8cd716dd19284e93af9.zip
r4904: sync up with 3.0 for 3.0.11pre2
Diffstat (limited to 'source/client')
-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);