cryptomator / cryptofs

Java Filesystem Provider with integrated encryption
GNU Affero General Public License v3.0
93 stars 35 forks source link

cryptomator returns incorrect sizes for symbolic links #141

Closed revintec closed 2 years ago

revintec commented 2 years ago

man stat: The st_size field gives the size of the file (if it is a regular file or a symbolic link) in bytes. The size of a symbolic link is the length of the pathname it contains, without a terminating null byte.

but cryptomator fails to subtract its encryption header size resulting in incorrect sizes for symbolic links to test: file symlink after ln -s . symlink should be 1 it's 1 on native linux FSes, but not 1 on cryptomator fuse FSes

TODO screenshot here

revintec commented 2 years ago

see https://github.com/cryptomator/cryptofs/pull/140 for a possible fix

revintec commented 1 year ago

@overheadhunter Hi, I'm using https://github.com/cryptomator/cli, and it seems that it haven't been updated for almost a year. can you make a new release thus that this bugfix is included?

infeo commented 1 year ago

@revintec Please open an issue in https://github.com/cryptomator/cli