aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2005-10-15 19:15:29 +0000
committerWayne Davison <wayned@samba.org>2005-10-15 19:15:29 +0000
commit35812ea1f9c246806c8c319ee2fef9f9e86e15e0 (patch)
tree1e649c74dd9e1f794f3cd730759b9d6fd2f00cb5 /util.c
parentd649b78920ebf1eea5396e804a7f5a85f1e3a5d1 (diff)
downloadandroid_external_rsync-35812ea1f9c246806c8c319ee2fef9f9e86e15e0.tar.gz
android_external_rsync-35812ea1f9c246806c8c319ee2fef9f9e86e15e0.tar.bz2
android_external_rsync-35812ea1f9c246806c8c319ee2fef9f9e86e15e0.zip
One extra tweak to the just-committed code.
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 1297834a..5864b5dc 100644
--- 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 */