From d48ccb3ddab71773a991b8f1b062901ff5b435b0 Mon Sep 17 00:00:00 2001 From: M. Vefa Bicakci Date: Tue, 7 Mar 2017 12:09:09 +0300 Subject: Report correct symbolic link dentry sizes Prior to this commit, gocryptfs's reverse mode did not report correct directory entry sizes for symbolic links, where the dentry size needs to be the same as the length of a string containing the target path. This commit corrects this issue and adds a test case to verify the correctness of the implementation. This issue was discovered during the use of a strict file copying program on a reverse-mounted gocryptfs file system. --- tests/reverse/ctlsock_reverse_test_fs/a_symlink | 1 + 1 file changed, 1 insertion(+) create mode 120000 tests/reverse/ctlsock_reverse_test_fs/a_symlink (limited to 'tests/reverse/ctlsock_reverse_test_fs/a_symlink') diff --git a/tests/reverse/ctlsock_reverse_test_fs/a_symlink b/tests/reverse/ctlsock_reverse_test_fs/a_symlink new file mode 120000 index 0000000..06ed148 --- /dev/null +++ b/tests/reverse/ctlsock_reverse_test_fs/a_symlink @@ -0,0 +1 @@ +dir/dir/file \ No newline at end of file -- cgit v1.2.3