missing chomp() on uname -s

Bug #781732 reported by Hendrik Frenzel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OCS Inventory: Unified Unix Agent
Fix Released
Low
mortheres

Bug Description

In Ocsinventory-Agent-2.0/lib/Ocsinventory/Agent/Backend/OS/Generic/Processes.pm there is a missing chomp in line 30. As result the following check (if ($os eq "SunOS")) always fail and the wrong ps syntax is used which does not work on Solaris.

Please apply the following fix:

diff Ocsinventory-Agent-2.0/lib/Ocsinventory/Agent/Backend/OS/Generic/Processes.pm.orig Ocsinventory-Agent-2.0/lib/Ocsinventory/Agent/Backend/OS/Generic/Processes.pm
30c30
< $os=`uname -s`;
---
> chomp($os=`uname -s`);

Bye
H.

mortheres (mortheres)
Changed in ocsinventory-unix-agent:
importance: Undecided → Low
Revision history for this message
mortheres (mortheres) wrote :

Hi,

Thanks a lot for your report and patch. It has been commited in revision 1049 of the stable-2.0 branch of the OCS UNix agent: http://bazaar.launchpad.net/~ocsinventory-dev/ocsinventory-unix-agent/stable-2.0/revision/1049

Kind regards,

Guillaume

Changed in ocsinventory-unix-agent:
status: New → Fix Committed
assignee: nobody → mortheres (mortheres)
mortheres (mortheres)
Changed in ocsinventory-unix-agent:
milestone: none → 2.0.1
mortheres (mortheres)
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.