diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-03-05 05:02:08 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-03-05 05:02:08 +0000 |
commit | 36592518dd0bd975de1534b0cdaee55597dcb3c8 (patch) | |
tree | 841bdb20bd0f95f128d7941ea9f6ebf8c95cedb2 /sftp-server.c | |
parent | b257cca7693dcb220e06dcab5c0f3fb458fb59d5 (diff) |
- deraadt@cvs.openbsd.org 2001/02/21 09:12:56
[sftp-server.c]
careful with & and &&; markus ok
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; |