Ticket #744: unlink.diff

File unlink.diff, 1.3 KB (added by snob, on 12/03/06 at 13:31:12)

unlink.diff

  • cpukit/libcsupport/src/unlink.c

    diff -ubBdr rtems-old/cpukit/libcsupport/src/unlink.c rtems/cpukit/libcsupport/src/unlink.c
    old new  
    3636     return -1;
    3737
    3838  result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc );
    39   if (result != 0){
     39  if (result != 0 && errno != ENOTSUP){
    4040    rtems_filesystem_freenode( &loc );
    4141    return -1;
    4242  }
  • cpukit/libfs/src/dosfs/msdos_eval.c

    diff -ubBdr rtems-old/cpukit/libfs/src/dosfs/msdos_eval.c rtems/cpukit/libfs/src/dosfs/msdos_eval.c
    old new  
    119119                 */
    120120                if (fat_fd->fat_file_type != FAT_DIRECTORY)
    121121                {
    122                     errno = ENOTDIR;
     122                    errno = ENOTSUP;
    123123                    rc = -1;
    124124                    goto error;
    125125                }
     
    174174                 */
    175175                if (fat_fd->fat_file_type != FAT_DIRECTORY)
    176176                {
    177                     errno = ENOTDIR;
     177                    errno = ENOTSUP;
    178178                    rc = -1;
    179179                    goto error;
    180180                }