https://bugs.winehq.org/show_bug.cgi?id=53440
Bug ID: 53440 Summary: Msys2 sh.exe -c /usr/bin/mktemp makes an error on Wine Product: Wine Version: 7.13 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: joel@airwebreathe.org.uk Distribution: ---
Running this command on Windows produces the expected path to the temp file:
c:\workspace>c:\msys64\usr\bin\bash.exe -c "/usr/bin/mktemp" /tmp/tmp.RwJ7JEktDp
Running the same command on Wine 7.13 produces a "Permission denied" error:
$ wine64 /path/to/usr/bin/sh.exe -c /usr/bin/mktemp 0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0024:fixme:ntdll:NtSetInformationToken unimplemented class 4 0024:fixme:security:GetWindowsAccountDomainSid (00000000FFFFC190 0000000000340E38 00000000FFFFC18C): semi-stub 0024:fixme:netapi32:DsEnumerateDomainTrustsW ((null), 0x0023, 00000000FFFFC368, 00000000FFFFC354): stub 0110:fixme:wldap32:ldap_set_optionA Unsupported option: 0x95 0110:fixme:wldap32:ldap_set_optionA Unsupported option: 0x96 0024:fixme:netapi32:NetUserGetInfo Only implemented for local computer, but remote serverL"\\@" was requested. Cygwin WARNING: Couldn't compute FAST_CWD pointer. This typically occurs if you're using an older Cygwin version on a newer Windows. Please update to the latest available Cygwin version from https://cygwin.com/. If the problem persists, please see https://cygwin.com/problems.html
0024:fixme:netapi32:NetLocalGroupGetInfo ((null) L"Administrators" 1 00000000FFFFC3E0) semi-stub! 0024:fixme:netapi32:NetLocalGroupGetInfo ((null) L"Users" 1 00000000FFFFC3E0) semi-stub! /usr/bin/mktemp: failed to create file via template ‘/tmp/tmp.XXXXXXXXXX’: Permission denied