#11 Decryption fails with mapped filenames

closed-fixed
Decryption (1)
5
2007-06-23
2007-06-15
Greg
No

Decryption fails with mapped filenames:

Filename translation not found(filemap): Error 0

The problem is that filemap::namecat_decrypt checks for "filemap" before stripping off the directory path.

% diff -puw filemap.cpp.orig filemap.cpp
--- filemap.cpp.orig 2007-06-14 16:57:13.780625000 -0700
+++ filemap.cpp 2007-06-14 16:57:14.800626000 -0700
@@ -212,9 +212,6 @@ std::string filemap::namecat_decrypt( co
while( *right==DIRSEP_C )
++right;

- if( *right=='\0' || strcmp(right, FILEMAPNAME)==0 )
- return "";
-
// Get just the file part of the path
for( int skip=0; right[skip]!='\0'; ++skip ) {
if( right[skip]==DIRSEP_C ) {
@@ -223,6 +220,9 @@ std::string filemap::namecat_decrypt( co
}
}

+ if( *right=='\0' || strcmp(right, FILEMAPNAME)==0 )
+ return "";
+
filemaptype::const_iterator iter=namemap.find(right);
if( iter==namemap.end() )
// Oops - we don't know how this file was called before we hashed it's name!

Discussion

  • Shachar Shemesh

    Shachar Shemesh - 2007-06-22

    Logged In: YES
    user_id=411662
    Originator: NO

    Can you give a command line scenario for encryption and decryption where the problem happens?

    Shachar

     
  • Shachar Shemesh

    Shachar Shemesh - 2007-06-23
    • assigned_to: nobody --> thesun
    • status: open --> closed-fixed
     
  • Shachar Shemesh

    Shachar Shemesh - 2007-06-23

    Logged In: YES
    user_id=411662
    Originator: NO

    Fix submitted to version control. Thanks for you report.

    Shachar

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks