summaryrefslogtreecommitdiff
path: root/cpukit/libfs/src/devfs/devfs_eval.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-27 17:32:59 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-27 17:32:59 +0000
commit9063a0e3c9136c11ab64aa59680224ef04a11c97 (patch)
treeec51a644de09b98d3e1eca82694c781b53439905 /cpukit/libfs/src/devfs/devfs_eval.c
parent225216358a11906e418f0ef680136056f05c9b3b (diff)
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/libfs/src/devfs/devfs_eval.c')
-rw-r--r--cpukit/libfs/src/devfs/devfs_eval.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cpukit/libfs/src/devfs/devfs_eval.c b/cpukit/libfs/src/devfs/devfs_eval.c
index 0df5754ad5..a3169fb3fa 100644
--- a/cpukit/libfs/src/devfs/devfs_eval.c
+++ b/cpukit/libfs/src/devfs/devfs_eval.c
@@ -40,10 +40,8 @@ int devFS_evaluate_path(
rtems_device_name_t *device_name_table;
/* see if 'flags' is valid */
- if ( !rtems_libio_is_valid_perms( flags ) ) {
- assert( 0 );
- rtems_set_errno_and_return_minus_one( EIO );
- }
+ if ( !rtems_libio_is_valid_perms( flags ) )
+ rtems_set_errno_and_return_minus_one( EPERM );
/* get the device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;