There seems to be some problem with the fru edit function. to be more
exactly its the update of the header which seems to be wrong. if I edit
a valid fruipmitool -H xxxx -U yyyy -P yyy -T 0x20 -B 0 -t 0x78 -b 7 fru edit 0
field b 0 "Uni Mainz"the header is not correctly updated.
You can notice that all data is moved 8 bytes and the offset for the
first record after the edited one is correctly modified. but the second
offset for the multirecord area) is not modified.
Patch is attached.
It is supposed to modify the header offset to muti-record area if any of the three previous areas has been edited.
Remark: this has to occur before the new header crc is calculated. thats the reson the modification is not close to the actual movement of the data. maybe it would be nicer to change the order in the code here. but I do not want to add undesired behaviour, thus keeping a clear and small patch.
Ticket moved from /p/ipmitool/patches/108/
Please, don't put
{
at extra line. Please, use% git format-patch;
to generate patch.Thank you,
Z.
o.k.?