Libvirt plugin bad regex

Bug #1095989 reported by Poil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OCS Inventory: Unified Unix Agent
Fix Released
Low
Frank

Bug Description

Hi,

In ./Agent/Backend/Virtualization/Libvirt.pm "if (/^\s+(\d+|\-)\s+(\S+)\s+(\S.+)/) {" must be "if (/^\s*(\d+|\-)\s+(\S+)\s+(\S.+)/) {"
because when the ID is greater than 99 we have no more space

Patch attached

Best regards

Revision history for this message
Frank (frank-bourdeau) wrote :

Hi,

Thanks for your patch. It will be integrated asap.

Best regards

Changed in ocsinventory-unix-agent:
importance: Undecided → Low
assignee: nobody → Frank (frank-bourdeau)
Revision history for this message
Poil (poil) wrote :
Revision history for this message
Poil (poil) wrote :

I don't know why but I'd uploaded a bad patch :D
Here is the fixed one

Sorry for that

Frank (frank-bourdeau)
Changed in ocsinventory-unix-agent:
status: New → Fix Committed
mortheres (mortheres)
Changed in ocsinventory-unix-agent:
milestone: none → 2.1rc1
Frank (frank-bourdeau)
Changed in ocsinventory-unix-agent:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.