https://bugs.winehq.org/show_bug.cgi?id=47766
Bug ID: 47766 Summary: PathAllocCanonicalize treats path segments start with dots wrong. Product: Wine Version: 4.16 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: kernelbase Assignee: wine-bugs@winehq.org Reporter: zzhang@codeweavers.com Distribution: ---
This bug was reported on wine-devel mail list by Sebastian M. Ernst ernst@pleiszenburg.de
user@comp:/path/other> WINEDEBUG=-all PYTHONHOME="z:\path\.to\target" wine /path/.to/target/python.exe -c "import sys; print(sys.executable)" Z:\pathto\target\python.exe
PYTHONHOME="z:\path\..to\target" wine /path/..to/target/python.exe -c "import sys; print(sys.executable)" Z:\to\target\python.exe
https://bugs.winehq.org/show_bug.cgi?id=47766
Sebastian Ernst ernst@pleiszenburg.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ernst@pleiszenburg.de
https://bugs.winehq.org/show_bug.cgi?id=47766
Hin-Tak Leung htl10@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |htl10@users.sourceforge.net
--- Comment #1 from Hin-Tak Leung htl10@users.sourceforge.net --- I don't know if it is related, but I have had an issue with native mono (i.e. mono running under linux) and xbuild doing quite similarly strange things with ".." in the project file:
https://github.com/Robmaister/SharpFont/issues/93
https://bugs.winehq.org/show_bug.cgi?id=47766
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source CC| |damjan.jov@gmail.com
--- Comment #2 from Damjan Jovanovic damjan.jov@gmail.com --- Python is our dogfood.
https://bugs.winehq.org/show_bug.cgi?id=47766
--- Comment #3 from Damjan Jovanovic damjan.jov@gmail.com --- The Python source doesn't contain the string "PathAllocCanonicalize". It is probably getting called indirectly, from inside Wine, possibly at a place where Windows doesn't.
https://bugs.winehq.org/show_bug.cgi?id=47766
--- Comment #4 from Zhiyi Zhang zzhang@codeweavers.com --- https://source.winehq.org/patches/data/169977 should fix this.
(In reply to Hin-Tak Leung from comment #1)
I don't know if it is related, but I have had an issue with native mono (i.e. mono running under linux) and xbuild doing quite similarly strange things with ".." in the project file:
I don't think it's the same issue. The issue was opened before PathAllocCanonicalize is implemented. It's likely an issue with other path canonicalization functions though. It could be an issue with wine or native mono.
(In reply to Damjan Jovanovic from comment #3)
The Python source doesn't contain the string "PathAllocCanonicalize". It is probably getting called indirectly, from inside Wine, possibly at a place where Windows doesn't.
PathAllocCanonicalize is called indirectly by many other PathCch* functions.
https://bugs.winehq.org/show_bug.cgi?id=47766
Jeff Smith whydoubt@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |whydoubt@gmail.com
--- Comment #5 from Jeff Smith whydoubt@gmail.com --- Sorry if I'm stepping on toes, but I had been looking into this as well and came up with a different solution. I was about to submit it, but saw the Zhiyi Zhang patch, so I reworked mine into a series that includes those tests.
The first patch in the series (containing everything but the tests): https://source.winehq.org/patches/data/169985
https://bugs.winehq.org/show_bug.cgi?id=47766
Zhiyi Zhang zzhang@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |c13a8f60bdef5b69f5db61f79ef | |b7fd341a27303 Status|NEW |RESOLVED
--- Comment #6 from Zhiyi Zhang zzhang@codeweavers.com --- Fixed by https://source.winehq.org/git/wine.git/commit/c13a8f60bdef5b69f5db61f79efb7f....
https://bugs.winehq.org/show_bug.cgi?id=47766
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.17.
https://bugs.winehq.org/show_bug.cgi?id=47766
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|kernelbase |kernel32