Index: client/ShareManager.cpp =================================================================== RCS file: /cvsroot/linuxdcpp/linuxdcpp/client/ShareManager.cpp,v retrieving revision 1.8 diff -u -r1.8 ShareManager.cpp --- client/ShareManager.cpp 1 Sep 2006 15:05:56 -0000 1.8 +++ client/ShareManager.cpp 11 Sep 2006 18:23:25 -0000 @@ -84,7 +84,7 @@ DIR* dir = opendir(Util::getConfigPath().c_str()); if (dir) { while (struct dirent* ent = readdir(dir)) { - if (fnmatch("files*.xml.bz2", ent->d_name, 0) == 0) { + // Don't delete files.xml.bz2 itself, only the temp copies named files###.xml.bz2 + if (fnmatch("files?*.xml.bz2", ent->d_name, 0) == 0) { File::deleteFile(Util::getConfigPath() + ent->d_name); } }