summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libfs/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-05 00:28:43 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-05 00:28:43 +0000
commit2f87c84349248bf105de731c17cdf75d0050219a (patch)
treed88c1b261e2fb14ff1cba1e16a7245381765ed19 /c/src/exec/libfs/src
parentAdded optional data and instruction caching enable calls. (diff)
downloadrtems-2f87c84349248bf105de731c17cdf75d0050219a.tar.bz2
Corrected spacing and added some new error checks that were needed
to avoid dereferencing NULLs.
Diffstat (limited to 'c/src/exec/libfs/src')
-rw-r--r--c/src/exec/libfs/src/imfs/imfs_eval.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/c/src/exec/libfs/src/imfs/imfs_eval.c b/c/src/exec/libfs/src/imfs/imfs_eval.c
index eb770a58ce..d6d444f6d2 100644
--- a/c/src/exec/libfs/src/imfs/imfs_eval.c
+++ b/c/src/exec/libfs/src/imfs/imfs_eval.c
@@ -70,7 +70,7 @@ int IMFS_evaluate_permission(
IMFS_jnode_t *jnode;
int flags_to_test;
- if (! rtems_libio_is_valid_perms( flags ) ) {
+ if ( !rtems_libio_is_valid_perms( flags ) ) {
assert( 0 );
set_errno_and_return_minus_one( EIO );
}
@@ -141,7 +141,7 @@ int IMFS_evaluate_hard_link(
* Verify we have the correct permissions for this node.
*/
- if (! IMFS_evaluate_permission( node, flags ) )
+ if ( !IMFS_evaluate_permission( node, flags ) )
set_errno_and_return_minus_one( EACCES );
return result;
@@ -203,7 +203,7 @@ int IMFS_evaluate_sym_link(
* Verify we have the correct permissions for this node.
*/
- if (! IMFS_evaluate_permission( node, flags ) )
+ if ( !IMFS_evaluate_permission( node, flags ) )
set_errno_and_return_minus_one( EACCES );
return result;
@@ -307,7 +307,7 @@ int IMFS_evaluate_for_make(
if ( type != IMFS_NO_MORE_PATH )
if ( node->type == IMFS_DIRECTORY )
- if (! IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
+ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
set_errno_and_return_minus_one( EACCES );
node = pathloc->node_access;
@@ -422,7 +422,7 @@ int IMFS_evaluate_for_make(
*/
for( ; path[i] != '\0'; i++) {
- if (! IMFS_is_separator( path[ i ] ) )
+ if ( !IMFS_is_separator( path[ i ] ) )
set_errno_and_return_minus_one( ENOENT );
}
@@ -443,7 +443,7 @@ int IMFS_evaluate_for_make(
* We must have Write and execute permission on the returned node.
*/
- if (! IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) )
+ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) )
set_errno_and_return_minus_one( EACCES );
return result;
@@ -472,7 +472,7 @@ int IMFS_eval_path(
IMFS_jnode_t *node;
int result;
- if (! rtems_libio_is_valid_perms( flags ) ) {
+ if ( !rtems_libio_is_valid_perms( flags ) ) {
assert( 0 );
set_errno_and_return_minus_one( EIO );
}
@@ -501,7 +501,7 @@ int IMFS_eval_path(
*/
if ( type != IMFS_NO_MORE_PATH )
if ( node->type == IMFS_DIRECTORY )
- if (! IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
+ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
set_errno_and_return_minus_one( EACCES );
node = pathloc->node_access;
@@ -622,7 +622,7 @@ int IMFS_eval_path(
* Verify we have the correct permissions for this node.
*/
- if (! IMFS_evaluate_permission( pathloc, flags ) )
+ if ( !IMFS_evaluate_permission( pathloc, flags ) )
set_errno_and_return_minus_one( EACCES );
return result;