Changeset 637


Ignore:
Timestamp:
Jul 20, 2015, 6:02:55 PM (9 years ago)
Author:
guerin
Message:

fat32: don't remove root node in _remove_node_from_fs()

Otherwise "rmdir /" would crash.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_fat32/fat32.c

    r636 r637  
    23282328static unsigned int _remove_node_from_fs( fat_inode_t* inode )
    23292329{
     2330    // check for root node
     2331    if ( !inode->parent ) return 1;
     2332
    23302333    // remove entry in parent directory
    23312334    if ( _remove_dir_entry( inode ) ) return 1;
Note: See TracChangeset for help on using the changeset viewer.