Fabiano Fidêncio
126187e814
safe-path: Fix needless_borrow warnings
...
As we bumped the rust toolchain to 1.66.0, some new warnings have been
raised due to needless_borrow.
Let's fix them all here.
For more info about the warnings, please, take a look at:
https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com >
2023-01-02 14:28:07 +01:00
Chao Wu
bb26bd73b1
safe-path: fix clippy warning
...
fix clippy warnings in safe-path lib to make clippy happy.
fixes : #4443
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-06-13 13:38:37 +08:00
Liu Jiang
0ad89ebd7c
safe-path: add more unit test cases
...
Add more unit test cases to improve code coverage.
Signed-off-by: Liu Jiang <gerry@linux.alibaba.com >
2022-04-21 10:01:23 +08:00
Liu Jiang
b63774ec61
libs/safe-path: add crate to safely resolve fs paths
...
There are always path(symlink) based attacks, so the `safe-path` crate
tries to provde some mechanisms to harden path resolution related code.
Fixes : #3451
Signed-off-by: Liu Jiang <gerry@linux.alibaba.com >
2022-04-21 10:01:21 +08:00