Ignore:
Timestamp:
Jan 19, 2024, 3:18:50 PM (18 months ago)
Author:
bird
Message:

ntopenat: On CIFS shared we may get errno == EINVAL when trying to _open a directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/nt/ntopenat.c

    r3533 r3601  
    5656     */
    5757    int const iErrnoSaved = errno;
     58    int iErrno;
    5859    int fd = open(pszPath, fFlags, fMode);
    5960    if (   fd < 0
    60         && (errno == EACCES || errno == ENOENT || errno == EISDIR)
     61        && ((iErrno = errno) == EACCES || iErrno == ENOENT || iErrno == EISDIR || iErrno == EINVAL /*CIFS*/)
    6162        && (fFlags & (_O_WRONLY | _O_RDWR | _O_RDONLY)) == _O_RDONLY
    6263        && (fFlags & (_O_CREAT | _O_TRUNC | _O_EXCL)) == 0 )
Note: See TracChangeset for help on using the changeset viewer.