git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a29bef
)
r4697: Fix for bug #2231 inspired by brad.ellis@its.monash.edu.au.
author
Jeremy Allison
<jra@samba.org>
Wed, 12 Jan 2005 01:25:14 +0000
(
01:25
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 15:53:51 +0000
(10:53 -0500)
Remove double "\\" from findfirst.
Jeremy.
source/client/client.c
patch
|
blob
|
history
diff --git
a/source/client/client.c
b/source/client/client.c
index 7470a7ba5fdb38f16ad48d30617fef86d66e9bca..a0804449985a72a98a58ab53ca45ce2acfdc0abf 100644
(file)
--- 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);