Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d649b78
)
One extra tweak to the just-committed code.
author
Wayne Davison
<wayned@samba.org>
Sat, 15 Oct 2005 19:15:29 +0000
(19:15 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sat, 15 Oct 2005 19:15:29 +0000
(19:15 +0000)
util.c
patch
|
blob
|
blame
|
history
diff --git
a/util.c
b/util.c
index
1297834
..
5864b5d
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-791,7
+791,7
@@
char *sanitize_path(char *dest, const char *p, const char *rootdir, int depth)
* always be left pointing after a slash
*/
if (*p == '.' && (p[1] == '/' || p[1] == '\0')) {
- if (leave_one_dotdir && p[1]
&& sanp != dest
)
+ if (leave_one_dotdir && p[1])
leave_one_dotdir = 0;
else {
/* skip "." component */