[Bug 53417] New: Msys2 mkdir returns different error codes on Wine breaking pacman.exe

WineHQ Bugzilla wine-bugs at winehq.org
Tue Jul 26 14:09:45 CDT 2022


https://bugs.winehq.org/show_bug.cgi?id=53417

            Bug ID: 53417
           Summary: Msys2 mkdir returns different error codes on Wine
                    breaking pacman.exe
           Product: Wine
           Version: 7.13
          Hardware: x86-64
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: -unknown
          Assignee: wine-bugs at winehq.org
          Reporter: joel at airwebreathe.org.uk
      Distribution: ---

The following Msys2 program returns different error codes on Wine versus
Windows:

-----------------------

#include <stdio.h>

#include <errno.h>
#include <sys/stat.h>

int main() {
    int ret = mkdir("/z", 0755);
    printf("ret = %d, errno = %d\n", ret, errno);
    return 0;
}

-----------------------

Compile with Msys2 gcc:

$ gcc -o test.exe test.c


On Windows Msys2:

$ ./root_mkdir_test.exe
ret = -1, errno = 2


On Wine v7.13:

wine64 root_mkdir_test.exe
0024:fixme:ntdll:NtSetInformationToken unimplemented class 4
0024:fixme:security:GetWindowsAccountDomainSid (00000000FFFFC190
000000000033DB88 00000000FFFFC18C): semi-stub
0024:fixme:netapi32:DsEnumerateDomainTrustsW ((null), 0x0023, 00000000FFFFC368,
00000000FFFFC354): stub
0114:fixme:wldap32:ldap_set_optionA Unsupported option: 0x95
0114: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!
ret = 0, errno = 0

-- 
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