VirtualBox

Changeset 2741 in kBuild


Ignore:
Timestamp:
Dec 26, 2014 4:36:14 PM (10 years ago)
Author:
bird
Message:

file.c: Forgot to update to_file->multi_head when the file being rehashed was at the head of a multi target link. This caused the renamed target to be used during updating and lots of trouble.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/file.c

    r2740 r2741  
    374374      to_file->multi_head  = f = from_file->multi_head;
    375375      if (f == from_file)
    376         for (; f != 0; f = f->multi_next)
    377             f->multi_head = to_file;
     376        {
     377          for (; f != 0; f = f->multi_next)
     378              f->multi_head = to_file;
     379          to_file->multi_head = to_file;
     380        }
    378381      else
    379382        {
     
    383386          f->multi_next = to_file;
    384387        }
     388# ifdef NDEBUG
    385389      from_file->multi_head = to_file->multi_head;
    386390      from_file->multi_next = NULL;
     391# else
     392      from_file->multi_head = (struct file *)0x2; /* poison */
     393      from_file->multi_next = (struct file *)0x8;
     394# endif
    387395    }
    388396#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette