Changeset 563686b in mainline for uspace/srv/fs/fat/fat_ops.c


Ignore:
Timestamp:
2011-06-20T19:00:06Z (13 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4372b49
Parents:
b85c19a
Message:

Fix for fat_read. Add error checking for fat_directory_open and use
new function: fat_directory_seek instead explicit assigning position.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_ops.c

    rb85c19a r563686b  
    12051205
    12061206                fat_directory_t di;
    1207                 fat_directory_open(nodep, &di);
    1208                 di.pos = pos;
     1207                rc = fat_directory_open(nodep, &di);
     1208                if (rc != EOK) goto err;
     1209                rc = fat_directory_seek(&di, pos);
     1210                if (rc != EOK) {
     1211                        (void) fat_directory_close(&di);
     1212                        goto err;
     1213                }
    12091214
    12101215                rc = fat_directory_read(&di, name, &d);
Note: See TracChangeset for help on using the changeset viewer.