diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-07-28 07:53:14 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-07-28 07:53:14 +0000 |
commit | 80c39a9c1fd70ff80afb7d500137db597df19426 (patch) | |
tree | da56abe2bc451176ab3727a903b3edf110339a40 /source3/client/clitar.c | |
parent | c76ab193dcc3285ce13ab2abcbcfce172874df70 (diff) | |
download | samba-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.c | 2 |
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; } |