mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
correct O_RDONLY sftp bug with windows systems
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@181 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -845,8 +845,8 @@ SFTP_FILE *sftp_open(SFTP_SESSION *sftp, char *file, int access, SFTP_ATTRIBUTES
|
||||
u32 id=sftp_get_new_id(sftp);
|
||||
BUFFER *buffer=buffer_new();
|
||||
STRING *filename;
|
||||
if(access & O_RDONLY)
|
||||
flags|=SSH_FXF_READ;
|
||||
if(access == O_RDONLY)
|
||||
flags|=SSH_FXF_READ; // if any of the other flag is set, READ should not be set initialy
|
||||
if(access & O_WRONLY)
|
||||
flags |= SSH_FXF_WRITE;
|
||||
if(access & O_RDWR)
|
||||
|
||||
Reference in New Issue
Block a user