diff options
Diffstat (limited to 'sftp-server.c')
-rw-r--r-- | sftp-server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sftp-server.c b/sftp-server.c index e959a5515..c8daeea1e 100644 --- a/sftp-server.c +++ b/sftp-server.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 | */ | 23 | */ |
24 | #include "includes.h" | 24 | #include "includes.h" |
25 | RCSID("$OpenBSD: sftp-server.c,v 1.19 2001/02/07 18:01:18 itojun Exp $"); | 25 | RCSID("$OpenBSD: sftp-server.c,v 1.20 2001/02/21 09:12:56 deraadt Exp $"); |
26 | 26 | ||
27 | #include "buffer.h" | 27 | #include "buffer.h" |
28 | #include "bufaux.h" | 28 | #include "bufaux.h" |
@@ -93,8 +93,8 @@ int | |||
93 | flags_from_portable(int pflags) | 93 | flags_from_portable(int pflags) |
94 | { | 94 | { |
95 | int flags = 0; | 95 | int flags = 0; |
96 | if (pflags & SSH2_FXF_READ && | 96 | if ((pflags & SSH2_FXF_READ) && |
97 | pflags & SSH2_FXF_WRITE) { | 97 | (pflags & SSH2_FXF_WRITE)) { |
98 | flags = O_RDWR; | 98 | flags = O_RDWR; |
99 | } else if (pflags & SSH2_FXF_READ) { | 99 | } else if (pflags & SSH2_FXF_READ) { |
100 | flags = O_RDONLY; | 100 | flags = O_RDONLY; |