Skip to content

PR for llvm/llvm-project#64313 #667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 31, 2023
Merged

PR for llvm/llvm-project#64313 #667

merged 1 commit into from
Aug 31, 2023

Conversation

llvmbot
Copy link
Member

@llvmbot llvmbot commented Aug 30, 2023

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

(cherry picked from commit 9a4b3fdb82327e808213070fd157be3c557b8b9d)
@llvmbot
Copy link
Member Author

llvmbot commented Aug 30, 2023

@jasonmolenda @DavidSpickett What do you think about merging this PR to the release branch?

@DavidSpickett
Copy link
Contributor

Let's merge it. It's small, it's low risk.

@tru tru merged commit 4a999da into release/17.x Aug 31, 2023
@tru tru deleted the llvm-issue64313 branch August 31, 2023 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sending files from Linux lldb to Windows lldb-server doesn't work
4 participants