]> git.ipfire.org Git - thirdparty/libvirt.git/commit
esx: Make the conf parser compare names case insensitive in VMX mode
authorMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 24 Mar 2010 00:52:33 +0000 (01:52 +0100)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 24 Mar 2010 20:03:37 +0000 (21:03 +0100)
commit5edaf95599952b4d78a7d4a55d83158ffae44396
tree7204d6f645d43d8b687a8b35a515d685e784809e
parentf66636e3ca9d34a1390392f43784fc872b85eb33
esx: Make the conf parser compare names case insensitive in VMX mode

The keys of entries in a VMX file are case insensitive. Both scsi0:1.fileName
and scsi0:1.filename are valid. Therefore, make the conf parser compare names
case insensitive in VMX mode to accept every capitalization variation.

Also add test cases for this.
src/util/conf.c
tests/vmx2xmldata/vmx2xml-case-insensitive-1.vmx [new file with mode: 0644]
tests/vmx2xmldata/vmx2xml-case-insensitive-1.xml [new file with mode: 0644]
tests/vmx2xmldata/vmx2xml-case-insensitive-2.vmx [new file with mode: 0644]
tests/vmx2xmldata/vmx2xml-case-insensitive-2.xml [new file with mode: 0644]
tests/vmx2xmltest.c