aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cachestorefiles.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cachestorefiles.h b/src/cachestorefiles.h
index 6a80765..1906b13 100644
--- a/src/cachestorefiles.h
+++ b/src/cachestorefiles.h
@@ -137,7 +137,12 @@ namespace Bu
137 { 137 {
138 Bu::MemBuf mb; 138 Bu::MemBuf mb;
139 Bu::Formatter f( mb ); 139 Bu::Formatter f( mb );
140 f << sPrefix << "/" << key; 140 f << sPrefix << "/";
141 Bu::FString sBase = mb.getString();
142 f << key;
143
144 if( sBase == mb.getString() )
145 return false;
141 146
142 return access( mb.getString().getStr(), F_OK ) == 0; 147 return access( mb.getString().getStr(), F_OK ) == 0;
143 } 148 }