aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/InterfaceFile.cpp
diff options
context:
space:
mode:
authorYuxuan Shui <yshuiv7@gmail.com>2023-08-30 15:40:56 +0300
committerMartin Storsjö <martin@martin.st>2023-08-30 15:53:31 +0300
commit9a4b3fdb82327e808213070fd157be3c557b8b9d (patch)
treef73c8df0335d1c31e722e077abbde95651c045a6 /llvm/lib/TextAPI/InterfaceFile.cpp
parent76bb278ebb3e7207723ff6735dd9b3bf4653b85c (diff)
downloadllvm-9a4b3fdb82327e808213070fd157be3c557b8b9d.zip
llvm-9a4b3fdb82327e808213070fd157be3c557b8b9d.tar.gz
llvm-9a4b3fdb82327e808213070fd157be3c557b8b9d.tar.bz2
[lldb][windows] _wsopen_s does not accept bits other than `_S_IREAD | _S_IWRITE`
When sending file from a Linux host to a Windows remote, Linux host will try to copy the source file's permission bits, which will contain `_S_I?GRP` and `_S_I?OTH` bits. Those bits are rejected by `_wsopen_s`, causing it to return EINVAL. This patch masks out the rejected bits. GitHub issue: #64313 Reviewed By: jasonmolenda, DavidSpickett Differential Revision: https://reviews.llvm.org/D156817
Diffstat (limited to 'llvm/lib/TextAPI/InterfaceFile.cpp')
0 files changed, 0 insertions, 0 deletions