Changeset d71fcab in rtems for cpukit/libcsupport/src/chown.c


Ignore:
Timestamp:
Oct 12, 1999, 6:44:40 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
578a415
Parents:
cb5056b3
Message:

Added call to freenod to let each filesystem free its own internal
node used to manage file access.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/chown.c

    rcb5056b3 rd71fcab  
    2727)
    2828{
    29   rtems_filesystem_location_info_t   temp_loc;
     29  rtems_filesystem_location_info_t   loc;
     30  int                                result;
    3031
    31   if ( rtems_filesystem_evaluate_path( path, 0x00, &temp_loc, TRUE ) )
     32  if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, TRUE ) )
    3233    return -1;
    3334 
    34   if ( !temp_loc.ops->chown )
     35  if ( !loc.ops->chown ) {
     36    if ( loc.ops->freenod )
     37      (*loc.ops->freenod)( &loc );
    3538    set_errno_and_return_minus_one( ENOTSUP );
     39  }
    3640
    37   return (*temp_loc.ops->chown)( &temp_loc, owner, group );
     41  result = (*loc.ops->chown)( &loc, owner, group );
     42
     43  if ( loc.ops->freenod )
     44    (*loc.ops->freenod)( &loc );
     45 
     46  return result;
    3847}
Note: See TracChangeset for help on using the changeset viewer.