Changeset 86042ae9 in rtems
- Timestamp:
- 11/25/03 17:27:55 (19 years ago)
- Children:
- c11ca814
- Parents:
- 7fa97181
- Location:
- cpukit/libcsupport
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libcsupport/ChangeLog
r7fa97181 r86042ae9 1 2003-11-25 Jennifer Averett <jennifer@OARcorp.com> 2 3 PR 519/filesystem 4 * include/rtems/libio_.h, src/eval.c, src/rmdir.c, src/unlink.c: 5 Check write permissions in parent directory for file or 6 directory delete 7 1 8 2003-10-22 Joel Sherrill <joel@OARcorp.com> 2 9 -
cpukit/libcsupport/include/rtems/libio_.h
r7fa97181 r86042ae9 228 228 ); 229 229 230 int rtems_filesystem_evaluate_parent( 231 int flags, 232 rtems_filesystem_location_info_t *pathloc 233 ); 234 230 235 void rtems_filesystem_initialize(); 231 236 -
cpukit/libcsupport/src/eval.c
r7fa97181 r86042ae9 98 98 } 99 99 100 101 int rtems_filesystem_evaluate_parent( 102 int flags, 103 rtems_filesystem_location_info_t *pathloc 104 ) 105 { 106 rtems_filesystem_location_info_t parent; 107 int result; 108 109 if ( !pathloc ) 110 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 111 112 if ( !pathloc->ops->evalpath_h ) 113 rtems_set_errno_and_return_minus_one( ENOTSUP ); 114 115 parent = *pathloc; 116 result = (*pathloc->ops->evalpath_h)( "..", flags, &parent ); 117 if (result != 0){ 118 return -1; 119 } 120 rtems_filesystem_freenode( &parent ); 121 return result; 122 } 123 -
cpukit/libcsupport/src/rmdir.c
r7fa97181 r86042ae9 40 40 return -1; 41 41 42 result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); 43 if (result != 0){ 44 rtems_filesystem_freenode( &loc ); 45 return -1; 46 } 47 42 48 /* 43 49 * Verify you can remove this node as a directory. -
cpukit/libcsupport/src/unlink.c
r7fa97181 r86042ae9 36 36 return -1; 37 37 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 38 44 if ( !loc.ops->node_type_h ) { 39 45 rtems_filesystem_freenode( &loc );
Note: See TracChangeset
for help on using the changeset viewer.