aboutsummaryrefslogtreecommitdiff
path: root/tests/reverse/ctlsock_reverse_test_fs
diff options
context:
space:
mode:
authorM. Vefa Bicakci2017-03-07 12:09:09 +0300
committerJakob Unterwurzacher2017-03-07 20:46:58 +0100
commitd48ccb3ddab71773a991b8f1b062901ff5b435b0 (patch)
tree54aab9db59a7d7cc43ca2e1199d6f9aa1ff388c4 /tests/reverse/ctlsock_reverse_test_fs
parent6e9b6e17c33b4471c30248c11b292468fe4ab912 (diff)
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.
Diffstat (limited to 'tests/reverse/ctlsock_reverse_test_fs')
l---------tests/reverse/ctlsock_reverse_test_fs/a_symlink1
1 files changed, 1 insertions, 0 deletions
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