From 020c664a212c3eadb6172c1c46487a9a841b156c Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 21 Feb 2001 09:12:57 +0000 Subject: careful with & and &&; markus ok --- usr.bin/ssh/sftp-server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/ssh/sftp-server.c b/usr.bin/ssh/sftp-server.c index 547199c0f6b..fa4eedc806a 100644 --- a/usr.bin/ssh/sftp-server.c +++ b/usr.bin/ssh/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" @@ -87,8 +87,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; -- cgit v1.2.3