Changeset 86042ae in rtems for cpukit/libcsupport/src/unlink.c


Ignore:
Timestamp:
Nov 25, 2003, 5:27:55 PM (17 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Children:
c11ca814
Parents:
7fa97181
Message:

2003-11-25 Jennifer Averett <jennifer@…>

PR 519/filesystem

  • include/rtems/libio_.h, src/eval.c, src/rmdir.c, src/unlink.c: Check write permissions in parent directory for file or directory delete
File:
1 edited

Legend:

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

    r7fa97181 r86042ae  
    3636     return -1;
    3737 
     38  result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc );
     39  if (result != 0){
     40    rtems_filesystem_freenode( &loc );
     41    return -1;
     42  }
     43
    3844  if ( !loc.ops->node_type_h ) {
    3945    rtems_filesystem_freenode( &loc );
Note: See TracChangeset for help on using the changeset viewer.