Commit Graph

19 Commits

Author SHA1 Message Date
Nero c13acc3fbb Fix invalid comparison operator in tests 2018-03-26 07:46:02 +00:00
Nero 74dc3723c4 Place under MIT 2018-03-21 23:08:11 +00:00
Nero 019d82fee2 Add notice about absolute paths 2018-03-20 18:05:56 +00:00
Nero 2665af78b6 Fix relative . or .. symlinks 2018-03-20 18:03:13 +00:00
Nero d54039a09b Allow test to be used against other executables 2018-03-20 18:02:58 +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 14eb56e8e1 Add another testcase 2018-03-13 23:48:42 +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
Nero 21b68007ef Base commit 2018-03-13 23:25:55 +00:00