[Bug 52311] New: Starting executables from removable devices no longer works with Wine 7.0-rc3-7-g3e73437ae8f
WineHQ Bugzilla
wine-bugs at winehq.org
Fri Dec 31 07:52:43 CST 2021
https://bugs.winehq.org/show_bug.cgi?id=52311
Bug ID: 52311
Summary: Starting executables from removable devices no longer
works with Wine 7.0-rc3-7-g3e73437ae8f
Product: Wine
Version: 7.0-rc3
Hardware: x86-64
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: wineserver
Assignee: wine-bugs at winehq.org
Reporter: focht at gmx.net
Distribution: ---
Hello folks,
just found by chance while checking some old bug reports.
Mount media/ISO image as usual and change to the directory where the executable
resides (= becomes working directory). Starting executable with 'wine
./setup.exe' results in:
--- snip ---
wine: failed to open "./setup.exe": c0000135
--- snip ---
--- snip ---
$ WINEDEBUG=+module,+server wine ./setup.exe >> ~/Downloads/log.txt 2>&1
...
0024:trace:module:get_load_order looking for L"C:\\setup.exe"
0024: get_key_value( hkey=0004, name=L"C:\\setup.exe" )
0024: get_key_value() = OBJECT_NAME_NOT_FOUND { type=-1, total=0, data={} }
0024: get_key_value( hkey=0004, name=L"*setup.exe" )
0024: get_key_value() = OBJECT_NAME_NOT_FOUND { type=-1, total=0, data={} }
0024: get_key_value( hkey=0004, name=L"setup.exe" )
0024: get_key_value() = OBJECT_NAME_NOT_FOUND { type=-1, total=0, data={} }
0024:trace:module:get_load_order got main exe default n,b for L"C:\\setup.exe"
wine: failed to open "./setup.exe": c0000135
0024: terminate_process( handle=ffffffff, exit_code=-1073741515 )
0024: terminate_process() = 0 { self=1 }
--- snip ---
It worked with Wine 7.0-rc3 but with today's git it no longer does.
I suspect
https://source.winehq.org/git/wine.git/commitdiff/3e73437ae8f04a12200bf537758d22e5f9723637
("ntdll: Preserve the startup Unix directory unless it's on a removable
device.") being the culprit.
--- snip ---
$ findmnt /run/media/focht/acad
TARGET SOURCE FSTYPE OPTIONS
/run/media/focht/acad /dev/sr1 iso9660
ro,nosuid,nodev,relatime,nojoliet,check=s,map=n,blocksize=2048,uid=1000,gid=1000,dmode=500,fmode=400
$ pwd
/run/media/focht/acad
$ ll
total 105
-r-xr-xr-x. 1 focht focht 306 Feb 12 2007 acadcd.mid
-r-xr-xr-x. 1 focht focht 43 Feb 22 2002 autorun.inf
dr-xr-xr-x. 80 focht focht 10240 Feb 12 2007 rr_moved
-r-xr-xr-x. 1 focht focht 87656 Feb 12 2007 setup.exe
dr-xr-xr-x. 11 focht focht 4096 Feb 12 2007 x64
dr-xr-xr-x. 11 focht focht 4096 Feb 12 2007 x86
--- snip ---
--- snip ---
$ ll ~/.wine/dosdevices/
lrwxrwxrwx. 1 focht focht 10 Dec 31 14:05 c: -> ../drive_c
lrwxrwxrwx. 1 focht focht 10 Dec 31 14:07 com1 -> /dev/ttyS0
...
lrwxrwxrwx. 1 focht focht 10 Dec 31 14:07 com9 -> /dev/ttyS8
lrwxrwxrwx. 1 focht focht 8 Dec 31 14:05 d:: -> /dev/sr0
lrwxrwxrwx. 1 focht focht 21 Dec 31 14:05 e: -> /run/media/focht/acad
lrwxrwxrwx. 1 focht focht 8 Dec 31 14:05 e:: -> /dev/sr1
lrwxrwxrwx. 1 focht focht 8 Dec 31 14:07 lpt1 -> /dev/lp0
lrwxrwxrwx. 1 focht focht 8 Dec 31 14:07 lpt2 -> /dev/lp1
lrwxrwxrwx. 1 focht focht 8 Dec 31 14:07 lpt3 -> /dev/lp2
lrwxrwxrwx. 1 focht focht 8 Dec 31 14:07 lpt4 -> /dev/lp3
lrwxrwxrwx. 1 focht focht 1 Dec 31 14:05 z: -> /
--- snip ---
This works:
--- snip ---
$ wine "e:\\setup.exe"
...
--- snip ---
$ wine --version
wine-7.0-rc3-34-gb6dc8399087
Regards
--
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.
More information about the wine-bugs
mailing list