Changeset 4d495cf in rtems


Ignore:
Timestamp:
Sep 6, 2017, 12:30:00 PM (23 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
bdbf1ffa
Parents:
a2c204eb
git-author:
Sebastian Huber <sebastian.huber@…> (09/06/17 12:30:00)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/06/17 12:31:04)
Message:

dosfs: Fix fat_file_update()

Do not update the non-existant meta-data of the root directory.

Update #2944.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/dosfs/fat_file.c

    ra2c204eb r4d495cf  
    169169    int ret_rc = RC_OK;
    170170
    171     /*
    172      * if fat-file descriptor is not marked as "removed", synchronize
    173      * size, first cluster number, write time and date fields of the file
    174      */
    175     if (!FAT_FILE_IS_REMOVED(fat_fd) && FAT_FILE_HAS_META_DATA_CHANGED(fat_fd))
     171    if (!FAT_FILE_IS_REMOVED(fat_fd) &&
     172        FAT_FILE_HAS_META_DATA_CHANGED(fat_fd) &&
     173        !FAT_FD_OF_ROOT_DIR(fat_fd))
    176174    {
    177175        int rc;
Note: See TracChangeset for help on using the changeset viewer.