Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 367d67fe in mainline


Ignore:
Timestamp:
2011-07-16T16:31:43Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
38224615
Parents:
3f3e5b5
Message:

Fix bug in dentry name compare code

File:
1 edited

Legend:

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

    r3f3e5b5 r367d67fe  
    354354                }
    355355
    356                 if (!bcmp(component, d_info.d_name, min(sbi->max_name_len,
    357                                 comp_size))) {
     356                const size_t dentry_name_size = str_size(d_info.d_name);
     357
     358                if (comp_size == dentry_name_size &&
     359                        !bcmp(component, d_info.d_name, dentry_name_size)) {
    358360                        /*Hit!*/
    359361                        mfs_node_core_get(rfn, mnode->instance,
Note: See TracChangeset for help on using the changeset viewer.