diff options
author | Jeremy Allison <jra@samba.org> | 2005-01-12 01:25:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:53:51 -0500 |
commit | d81fba2c2a5572dc82b1d89a6d4f1b58a58ef44e (patch) | |
tree | b0499531648c92a4f1445cd786940a1bb143e598 /source3 | |
parent | 08a9d98cdecfd8cac2a5b72130e30a711eddb050 (diff) | |
download | samba-d81fba2c2a5572dc82b1d89a6d4f1b58a58ef44e.tar.gz samba-d81fba2c2a5572dc82b1d89a6d4f1b58a58ef44e.tar.bz2 samba-d81fba2c2a5572dc82b1d89a6d4f1b58a58ef44e.zip |
r4697: Fix for bug #2231 inspired by brad.ellis@its.monash.edu.au.
Remove double "\\" from findfirst.
Jeremy.
(This used to be commit 88a89b31059ac21e09d283f8795cd6ea88c4315c)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/client/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 7470a7ba5f..a080444998 100644 --- a/source3/client/client.c +++ b/source3/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); |