[Bug 17758] New: GetFileAttributesExW accepts unix paths
http://bugs.winehq.org/show_bug.cgi?id=17758 Summary: GetFileAttributesExW accepts unix paths Product: Wine Version: 1.1.17 Platform: Other URL: http://www.python.org/ftp/python/3.0.1/python-3.0.1.msi OS/Version: other Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: kernel32 AssignedTo: wine-bugs(a)winehq.org ReportedBy: madewokherd(a)gmail.com GetFileAttributesExW("/bin/sh") succeeds if /bin is mapped. Some of python's tests use this check to decide whether it's running on a Unix system. It then tries to start a subprocess using /bin/sh and read its output; this does not work because Wine processes cannot read the output of non-Wine processes. In python's case, this is harmless and only results in a few test failures. Files should not be accessible to Windows programs by their Unix paths. We wouldn't want them to think /bin/sh is actually useful. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17758 Vincent Povirk <madewokherd(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source --- Comment #1 from Vincent Povirk <madewokherd(a)gmail.com> 2009-03-15 19:32:17 --- As a quick test, install Python and run $ wine 'c:\Python30\python' -c 'print(__import__("os").path.exists("/bin/sh"))' It prints True on Wine if /bin is mapped and False on Windows. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17758 Jeff Zaroyko <jeffz(a)jeffz.name> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jeffz(a)jeffz.name --- Comment #2 from Jeff Zaroyko <jeffz(a)jeffz.name> 2009-03-16 00:12:06 --- (In reply to comment #1)
As a quick test, install Python and run
$ wine 'c:\Python30\python' -c 'print(__import__("os").path.exists("/bin/sh"))'
It prints True on Wine if /bin is mapped and False on Windows.
This isn't a good way to what if the file c:\bin\sh exists on Windows? mkdir c:\bin echo > c:\bin\sh GetFileAttributesA("/bin/sh"); returns FILE_ATTRIBUTE_ARCHIVE (0x20) Unix style paths on Windows refer to the current drive. (In reply to comment #0)
GetFileAttributesExW("/bin/sh") succeeds if /bin is mapped. Some of python's tests use this check to decide whether it's running on a Unix system. It then tries to start a subprocess using /bin/sh and read its output; this does not work because Wine processes cannot read the output of non-Wine processes.
These tests are broken then. The only valid part of this bug report is that Z: is searched when a unix style path is used, but it shouldn't be unless it's the current drive. There's already another bug report open about this. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17758 Jeff Zaroyko <jeffz(a)jeffz.name> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE --- Comment #3 from Jeff Zaroyko <jeffz(a)jeffz.name> 2009-03-16 00:31:34 ---
Files should not be accessible to Windows programs by their Unix paths.
I agree, marking duplicate *** This bug has been marked as a duplicate of bug 15883 *** -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17758 Jeff Zaroyko <jeffz(a)jeffz.name> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #4 from Jeff Zaroyko <jeffz(a)jeffz.name> 2009-03-16 00:31:56 --- closing duplicate -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org