I'm having trouble understanding the -badname switch #784
AltitudeApps
started this conversation in
General
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I did find this question: #657
But I still am confused as to how the
-badname
flag would even work...The man page says:
OK, so if the item's name decrypted to garbage, then how would that garbage name ever match any glob patterns besides
"*"
? Obviously, there's something I'm missing here.The reason I'm concerned is that I'm using gocryptfs in conjunction with OneDrive. (I'm running gocryptfs under Windows Subsystem for Linux, on a directory on my Windows NTFS drive, mounted in linux at something like
/mnt/c/Users/joeuser/OneDrive/gocryptfs/cipher
) So I was reading the documentation looking for references to things like DropBox, SyncThing, etc., which is where I ran across the-badname
flag.Now I know that the
-badname
flag exists, and apparently exists because of circumstances which arise due to use of cloud sync services, I'm trying to understand why it exists. I'm even unclear as to why anything could possibly...Wait, I think I get it.
MyFile.txt
exists in a gocryptfs plain text mountlasdf9efokjhu
on the actual backing filesystem on the sync servicelasdf9efokjhu
, andlasdf9efokjhu.SyncConflict.Oops
-badname '*.SyncConflict.Oops*'
would match against the file in the backing filesystem, and gocryptfs would present it in the FUSE mounted plaintext view as<something-something>.GOCRYPTFS_BAD_NAME
Did I get that right?
Beta Was this translation helpful? Give feedback.
All reactions