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

Changeset 7a2be00 in mainline


Ignore:
Timestamp:
2011-07-30T18:37:02Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
d2c67e7
Parents:
eefb653
Message:

Fix bug in the mfs_remove_dentry()

File:
1 edited

Legend:

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

    reefb653 r7a2be00  
    168168                on_error(r, return r);
    169169
    170                 if (!bcmp(d_info.d_name, d_name, name_len)) {
     170                const size_t d_name_len = str_size(d_info.d_name);
     171
     172                if (name_len == d_name_len &&
     173                                !bcmp(d_info.d_name, d_name, name_len)) {
    171174                        d_info.d_inum = 0;
    172175                        r = write_dentry(&d_info);
Note: See TracChangeset for help on using the changeset viewer.