summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-27 17:33:11 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-27 17:33:11 +0000
commited4a3f6e367796fdc6343790d9fa60bcfe7e5f31 (patch)
treed3a036cb0fd27003cdf513d2c4f637119ddd5fb5 /cpukit/libcsupport
parent2010-08-26 Chris Johns <chrisj@rtems.org> (diff)
downloadrtems-ed4a3f6e367796fdc6343790d9fa60bcfe7e5f31.tar.bz2
2010-08-27 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1692/filesystem * libcsupport/include/rtems/libio.h, libfs/src/devfs/devfs_eval.c, libfs/src/imfs/imfs_eval.c: Fix implementation and use of rtems_libio_is_valid_perms().
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r--cpukit/libcsupport/include/rtems/libio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libcsupport/include/rtems/libio.h b/cpukit/libcsupport/include/rtems/libio.h
index 7db9524ef7..9f04db96d5 100644
--- a/cpukit/libcsupport/include/rtems/libio.h
+++ b/cpukit/libcsupport/include/rtems/libio.h
@@ -537,7 +537,7 @@ static inline rtems_device_minor_number rtems_filesystem_dev_minor_t(
* Verifies that the permission flag is valid.
*/
#define rtems_libio_is_valid_perms( _perm ) \
- (~ ((~RTEMS_LIBIO_PERMS_RWX) & _perm ))
+ (((~RTEMS_LIBIO_PERMS_RWX) & _perm ) == 0)
/*
* Prototypes for filesystem