diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-13 10:36:11 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-15 10:27:12 +0200 |
commit | 3cffd66d763ec83de382e2cb03c04e2eba0ac5e9 (patch) | |
tree | 19bacd70e9f1667422a6a0fa184dee468d690cd7 /cpukit/libnetworking/lib/ftpfs.c | |
parent | libio: Add rtems_libio_iop_is_readable() (diff) | |
download | rtems-3cffd66d763ec83de382e2cb03c04e2eba0ac5e9.tar.bz2 |
libio: Add rtems_libio_iop_is_writeable()
Update #3132.
Diffstat (limited to 'cpukit/libnetworking/lib/ftpfs.c')
-rw-r--r-- | cpukit/libnetworking/lib/ftpfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libnetworking/lib/ftpfs.c b/cpukit/libnetworking/lib/ftpfs.c index deccddfa89..1e0f180fd0 100644 --- a/cpukit/libnetworking/lib/ftpfs.c +++ b/cpukit/libnetworking/lib/ftpfs.c @@ -1032,11 +1032,11 @@ static int rtems_ftpfs_open( bool verbose = me->verbose; const struct timeval *timeout = &me->timeout; - e->write = (iop->flags & LIBIO_FLAGS_WRITE) != 0; + e->write = rtems_libio_iop_is_writeable(iop); /* Check for either read-only or write-only flags */ if ( - (iop->flags & LIBIO_FLAGS_WRITE) != 0 + rtems_libio_iop_is_writeable(iop) && rtems_libio_iop_is_readable(iop) ) { eno = ENOTSUP; |