exa/xtests/links_1_files
Benjamin Sago 108a402dbd Re-prefix the paths found by following symlinks
Fixes #134, a bug that showed symlinks incorrectly as broken, but only when the file was listed directly on the command-line *and* the file was in a different directory to the one exa was being run in.

I’m not sure why the old code used `String::new()`, but it doesn’t seem to affect anything.
2017-05-15 22:38:23 +01:00

676 B

/testcases/links/broken -> nowhere
/testcases/links/current_dir -> .
/testcases/links/forbidden -> /proc/1/root
/testcases/links/itself -> itself
/testcases/links/parent_dir -> ..
/testcases/links/root -> /
/testcases/links/some_file
/testcases/links/some_file_absolute -> /testcases/links/some_file
/testcases/links/some_file_relative -> some_file
/testcases/links/usr -> /usr