Commit Graph
3 Commits
Author SHA1 Message Date
Yu Watanabe 2bb0227165 udev: always use last 11 chars for hash string
This makes the last 11 chars are always preserved for hashed string.
So, it is hard to generate a path which conflicts to another path.

Fixes an issue demonstrated in the previous commit.
2021-06-04 22:31:24 +09:00
Yu Watanabe 0192864da7 test: add a testcase that demonstrates a conflict of hashed filename
The commit e64943363a introduces hashed
path at the end of the filename. But we can easily generate the path
which conflicts another path. The issue will be fixed in later commit.
2021-06-04 22:28:52 +09:00
Yu Watanabe 52fde28014 test: add tests for udev_node_escape_path() 2021-06-04 15:51:39 +09:00