Changeset e8b6b6a in mainline


Ignore:
Timestamp:
2011-07-27T11:01:48Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dd9af5d
Parents:
b2a18234
Message:

Skip the first two directories ('.' and '..') in the mfs_read() function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/minixfs/mfs_ops.c

    rb2a18234 re8b6b6a  
    656656                struct mfs_sb_info *sbi = mnode->instance->sbi;
    657657
     658                if (pos < 2) {
     659                        /*Skip the first two dentries ('.' and '..')*/
     660                        pos = 2;
     661                }
     662
    658663                for (; pos < mnode->ino_i->i_size / sbi->dirsize; ++pos) {
    659664                        rc = read_dentry(mnode, &d_info, pos);
Note: See TracChangeset for help on using the changeset viewer.