summaryrefslogtreecommitdiff
path: root/source3/client/clitar.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-07-28 07:53:14 +0000
committerAndrew Tridgell <tridge@samba.org>2002-07-28 07:53:14 +0000
commit80c39a9c1fd70ff80afb7d500137db597df19426 (patch)
treeda56abe2bc451176ab3727a903b3edf110339a40 /source3/client/clitar.c
parentc76ab193dcc3285ce13ab2abcbcfce172874df70 (diff)
downloadsamba-80c39a9c1fd70ff80afb7d500137db597df19426.tar.gz
samba-80c39a9c1fd70ff80afb7d500137db597df19426.tar.bz2
samba-80c39a9c1fd70ff80afb7d500137db597df19426.zip
fix for smbtar filename matching
samba-patches 852 (This used to be commit e2558baa32657a71fd7e0958446f72e373cfadc9)
Diffstat (limited to 'source3/client/clitar.c')
-rw-r--r--source3/client/clitar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index 43b0ef44bc..c453cfbb54 100644
--- a/source3/client/clitar.c
+++ b/source3/client/clitar.c
@@ -492,7 +492,7 @@ static int strslashcmp(char *s1, char *s2)
if (!*s2 && (*s1 == '/' || *s1 == '\\') && !*(s1+1)) return 0;
/* check for s1 is an "initial" string of s2 */
- if (*s2 == '/' || *s2 == '\\') return 0;
+ if ((*s2 == '/' || *s2 == '\\') && !*s1) return 0;
return *s1-*s2;
}