diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-03-05 06:02:08 +0100 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-03-05 06:02:08 +0100 |
commit | 36592518dd0bd975de1534b0cdaee55597dcb3c8 (patch) | |
tree | 841bdb20bd0f95f128d7941ea9f6ebf8c95cedb2 /sftp-server.c | |
parent | - deraadt@cvs.openbsd.org 2001/02/21 09:05:54 (diff) | |
download | openssh-36592518dd0bd975de1534b0cdaee55597dcb3c8.tar.xz openssh-36592518dd0bd975de1534b0cdaee55597dcb3c8.zip |
- 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 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "includes.h" -RCSID("$OpenBSD: sftp-server.c,v 1.19 2001/02/07 18:01:18 itojun Exp $"); +RCSID("$OpenBSD: sftp-server.c,v 1.20 2001/02/21 09:12:56 deraadt Exp $"); #include "buffer.h" #include "bufaux.h" @@ -93,8 +93,8 @@ int flags_from_portable(int pflags) { int flags = 0; - if (pflags & SSH2_FXF_READ && - pflags & SSH2_FXF_WRITE) { + if ((pflags & SSH2_FXF_READ) && + (pflags & SSH2_FXF_WRITE)) { flags = O_RDWR; } else if (pflags & SSH2_FXF_READ) { flags = O_RDONLY; |