From ef3d1642c083a9c69eb48c6ab8ecc9be43dfbcfc Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 29 Mar 2009 13:51:24 +0000 Subject: Change type of BackupStoreFilename not to derive from std::string, so it can't accidentally be used as one. Fix use of encrypted filename in deleted file message, thanks to Kenny Millington for reporting. --- test/backupstore/testbackupstore.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/backupstore/testbackupstore.cpp b/test/backupstore/testbackupstore.cpp index 39bd9fbe..0266d097 100644 --- a/test/backupstore/testbackupstore.cpp +++ b/test/backupstore/testbackupstore.cpp @@ -232,7 +232,8 @@ int test1(int argc, const char *argv[]) TEST_THAT(fn1 == fn3); // Check that it's been encrypted - TEST_THAT(fn2.find("name") == fn2.npos); + std::string name(fn2.GetEncodedFilename()); + TEST_THAT(name.find("name") == name.npos); // Bung it in a stream, get it out in a Clear filename { -- cgit v1.2.3