Commit Graph

13 Commits

Author SHA1 Message Date
Nero 2665af78b6 Fix relative . or .. symlinks 2018-03-20 18:03:13 +00:00
Nero 49d87e3c40 Improve test suite to catch more cases 2018-03-20 18:02:02 +00:00
Nero c8db61d543 Use printf instead of echo 2018-03-16 04:24:15 +00:00
Nero 2e15c4c71d Fix relative symlink resolution, again
/foo/a -> b means a must get removed from the result.
2018-03-16 04:21:43 +00:00
Nero c089ff4a3a Add commentary, fix broken relative symlink resolution 2018-03-16 04:18:57 +00:00
Nero 4e0af9dc0a Make identation more consistent 2018-03-16 04:11:59 +00:00
Nero 6a90372fd7 Give variables more expressive names 2018-03-16 04:10:20 +00:00
Nero 6530695869 Fix for relative path arguments 2018-03-16 04:07:09 +00:00
Nero 60c02a37fd Rewrite using an while loop
This is now able to:
- deal with cascaded symlinks like a->b, b->c
- deal with b being a symlink in a/b/c
2018-03-16 04:03:09 +00:00
Nero a375428d5d Fix bug with trailing slash 2018-03-13 23:53:30 +00:00
Nero e29ff72436 Dont output empty line 2018-03-13 23:52:18 +00:00
Nero 79a20986eb Fix case when target is not a symlink 2018-03-13 23:45:19 +00:00
Nero 256ef33bdf Import PoC 2018-03-13 23:26:17 +00:00