Andreas Gruenbacher
7a77ae9f81
Allow absolute symlinks that lead back into the working directory
...
* src/safe.c (cwd_stat_errno, cwd_stat): stat() result of ".".
(read_symlink): When a symlink is absolute, check if it leads back into the
working directory. If it does, strip off the prefix above the working
directory. If the symlink points to the working directory, return an empty
path.
(traverse_another_path): Recognize empty paths from read_symlink().
* tests/symlinks: Absolute symlink test cases.
2015-03-07 01:23:29 +01:00
..
2012-08-08 01:41:42 +02:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2012-09-22 20:10:53 +02:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-02-22 18:50:16 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2013-07-30 15:28:25 +02:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-02-04 10:54:03 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-02-04 10:54:03 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-02-04 10:54:03 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00
2015-03-07 01:23:29 +01:00
2015-01-31 22:14:01 +01:00
2015-01-31 22:14:01 +01:00