libgocryptfs/tests/reverse
Jakob Unterwurzacher 4da245c69d fusefrontend_reverse: fix 176-byte names
A file with a name of exactly 176 bytes length caused this error:

  ls: cannot access ./tmp/dsg/sXSGJLTuZuW1FarwIkJs0w/b6mGjdxIRpaeanTo0rbh0A/QjMRrQZC_4WLhmHI1UOBcA/gocryptfs.longname.QV-UipdDXeUVdl05WruoEzBNPrQCfpu6OzJL0_QnDKY: No such file or directory
  ls: cannot access ./tmp/dsg/sXSGJLTuZuW1FarwIkJs0w/b6mGjdxIRpaeanTo0rbh0A/QjMRrQZC_4WLhmHI1UOBcA/gocryptfs.longname.QV-UipdDXeUVdl05WruoEzBNPrQCfpu6OzJL0_QnDKY.name: No such file or directory
  -????????? ? ?     ?             ?            ? gocryptfs.longname.QV-UipdDXeUVdl05WruoEzBNPrQCfpu6OzJL0_QnDKY
  -????????? ? ?     ?             ?            ? gocryptfs.longname.QV-UipdDXeUVdl05WruoEzBNPrQCfpu6OzJL0_QnDKY.name

Root cause was a wrong shortNameMax constant that failed to
account for the obligatory padding byte.

Fix the constant and also expand the TestLongnameStat test case
to test ALL file name lengths from 1-255 bytes.

Fixes https://github.com/rfjakob/gocryptfs/issues/143 .
2017-10-01 13:50:25 +02:00
..
ctlsock_reverse_test_fs Report correct symbolic link dentry sizes 2017-03-07 20:46:58 +01:00
correctness_test.go fusefrontend_reverse: fix 176-byte names 2017-10-01 13:50:25 +02:00
ctlsock_test.go tests: reverse: don't run tests that ignore "-plaintextnames" twice 2017-03-07 20:53:58 +01:00
linux-tarball-test.bash OSX compat: replace fusermount calls with fuse-unmount.bash 2017-02-15 23:02:01 +01:00
longname_perf_test.go reverse: more thorough longname stat test 2016-09-25 16:43:17 +02:00
main_test.go tests: reverse: check Access() call 2017-02-16 21:20:29 +01:00