New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
broken links with "--dir" #42
Comments
Thanks for reporting! I'll look into this and fix it. |
Bug confirmed, will fix. |
Fixed in master. Please test. |
The fix helps, current master doesn't create broken links anymore. Playing a bit around it seems that algernon doesn't cleanup/canonicalize rootdir, so a usage like "--dir $PWD/../../www/" unnecessarily exposes the (name of the) current working directory. |
Thanks for testing. I created a branch named If it's an improvement, I'll merge it to |
I tested again with latest git, but the reldir modification does not (always) do what I had expected, see the following example: $ mkdir -p dir1a/dir2a dir1a/dir2b/dir3 $ algernon.git --dir $PWD/dir1a/dir2a/../dir2b/dir3/./// --httponly --verbose good: algernon shows "dir1a/dir2b/dir3/" $ algernon.git --dir dir1a/dir2a/../dir2b/dir3/./// --httponly --verbose bad: algernon shows "dir1a/dir2a/../dir2b/dir3/.//" |
'algernon --dir .' creates proper links to the files in the current folder, but 'algernon --dir ./' creates broken links: each linked file's first char has been removed. A file called "foo" is linked as "oo". I confirmed this with versions 1.12.5 and 1.12.6 on Linux.
The text was updated successfully, but these errors were encountered: