freddy77 / encfs4win Goto Github PK
View Code? Open in Web Editor NEWencfs ported to Windows
encfs ported to Windows
Hi. I use your project encfs4win and enjoy it. But now I have one little issue.
http://gyazo.com/27a77b2596c52817a5e9c8827a1d07f5.png
I have noticed, that I not have access for any files (You can see it on screen, drive t:\ is mounted folder d:\Enc).
There is no files in folder 'delphi', but on drive d: its exist in ecrypted form. Now, I have already lost some files by my inattention.
What to do with this situation?
UPD: I think that it appears with long filenames. Length of one file - 186 characters. If I delete this, other files in the same dirrectory now displayed.
This seems to be a Dokan library issue, which effects encfs4win.
It is filed as https://code.google.com/p/dokan/issues/detail?id=282.
What steps will reproduce the problem?
Rename a file on an encfs4win mounted drive.
What is the expected output? What do you see instead?
The time stamp of the file should be unchanged. Instead the date shows the current date.
What version of the product are you using? On what operating system?
Dokan library 0.6.0.
Please provide any additional information below.
The problem is also described at
https://groups.google.com/forum/#!msg/dokan/yDKXJMMiAA0/_X3ZsQcgNBMJ
Hello,
Please correct this terrible bug in encfs/encfs/compatwin.cpp
HANDLE f = CreateFileW(fn.c_str(), flags == O_RDONLY ? GENERIC_WRITE : GENERIC_WRITE|GENERIC_READ, FILE_SHARE_DELETE|FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL);
MUST BE :
HANDLE f = CreateFileW(fn.c_str(), flags == O_RDONLY ? GENERIC_READ : GENERIC_WRITE|GENERIC_READ, FILE_SHARE_DELETE|FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL);
Of course, if it's a read-only file, we're not going to open it write-only.
Also, there's a bug in dokany flags conversion, see link below.
EDIT: I've created a fork that fixes this issue: https://github.com/kriswebdev/encfs4win-reloaded
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.