The filename from commandline argument is being processed directly, without first resolving symlinks. This leads to bug #1567, where Geany fails to open existing file, if it is being opened using path containing symlink and relative directories.
Windows counterpart of this code actually resolves the links, I have just corrected the non-win branch. This fixes the bug described in the bug report and should not have any unwanted side-effects.
Similar problem might (or might not) be also present in two other functions that use utils_tidy_path, without resolving the symlinks first:
document_new_file
at src/document.c:832get_custom_plugin_path
at src/plugins.c:1009I'm not sure if it is appropriate to check and possibly fix those in the same PR.
https://github.com/geany/geany/pull/3036
(1 file)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.