Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cygwin: shared: Fix access permissions setting in open_shared().
After the commit 93508e5, the access permissions argument passed to open_shared() is ignored and always replaced with (FILE_MAP_READ | FILE_MAP_WRITE). This causes the weird behaviour that sshd service process loses its cygwin PID. This triggers the failure in pty that transfer_input() does not work properly. This patch resumes the access permission settings to fix that. Fixes: 93508e5 ("Cygwin: open_shared: don't reuse shared_locations parameter as output") Reviewed-by: Corinna Vinschen <[email protected]> Signedd-off-by: Takashi Yano <[email protected]>
- Loading branch information