Code Monkey home page Code Monkey logo

Comments (5)

netheril96 avatar netheril96 commented on May 30, 2024

Maybe this is related to issue #42 ? Can you test again on the latest commit?

from securefs.

fxha avatar fxha commented on May 30, 2024

No, 324a92f does not fix the problem. This problem happens when I use Linux (Fedora 26/Ubuntu) and put the encrypted files on a NTFS drive.

from securefs.

fxha avatar fxha commented on May 30, 2024

I opened the link with a hex editor and the symbolic link on the NTFS drive starts with IntxLNK followed by the target.

For example:
IntxLNK.V.B.F.S.N.2.D.U.Z.7.V.8.9.4.6.X.K.Q.N.8.R.K.B.Q.8.C.4.H.T.B.W.8.A.2.


Edit: Please take a look at my fork 08993fc. I get the following output with some verbose logging:

# link to 0798257523.txt
path: /0798257523_link.txt
enc_path: Q4MB44WZWA982AVXGUXCYXW2ZD239FYVDNXQBCZQ6Z3FEX3MCTRWATDC
link (buffer): 56C2R9U3DFU6IAVGFQG26FRKJG73ZNT34SDFVTND86HKUKAX
buf->size: 104
link_size: 48
diff: 56

# link to a.txt
path: /58758558091521282495.txt
enc_path: FJ4MD3KWXHKQGBXD5H8GJ3PYFBWDTTRZE7RJQID3SCXITKFUVQSQBHKMN4S6PEW7
link (buffer): VBFSN2DUZ7V8946XKQN8RKBQ8C4HTBW8A2
buf->size: 76
link_size: 34
diff: 42

# link to a.txt
path: /a_link.txt
enc_path: G62WXVIQZ84657ZDEKSJU6QM39JIBDNW634J9GDFMA
link (buffer): VBFSN2DUZ7V8946XKQN8RKBQ8C4HTBW8A2
buf->size: 76
link_size: 34
diff: 42

So the link size is defined by: (buffer_size - 8) / 2

Edit2: I updated my PR.

from securefs.

netheril96 avatar netheril96 commented on May 30, 2024

Why is the issue specific to NTFS?

from securefs.

fxha avatar fxha commented on May 30, 2024

It seem that my NTFS filesystem (created by windows) using Interix symlinks and UNIX inode's.

from securefs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.