Skip to content

Commit

Permalink
Support for AIX >= 6.1 (merge r2238)
Browse files Browse the repository at this point in the history
  • Loading branch information
d_pocock committed Jan 28, 2010
1 parent f646768 commit 85d088d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libmetrics/aix/metrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -834,9 +834,10 @@ int bos_level(int *aix_version, int *aix_release, int *aix_level, int *aix_fix)
*/
/*
* AIX > 4.2 uses bos.mp or bos.up
* AIX >= 6.1 uses bos.mp64
*/
getit = ODM_FIRST;
while ((rc = (int)odm_get_obj(my_cl, "name like bos.?p",
while ((rc = (int)odm_get_obj(my_cl, "name like bos.?p*",
&productobj, getit)) != 0) {
getit = ODM_NEXT;
if (rc == -1) {
Expand All @@ -852,7 +853,7 @@ int bos_level(int *aix_version, int *aix_release, int *aix_level, int *aix_fix)
}
}
/*
* AIX < 4.2 uses bos.mp or bos.up
* AIX < 4.2 uses bos.rte.mp or bos.rte.up
*/
if (!found) {
getit = ODM_FIRST;
Expand Down

0 comments on commit 85d088d

Please sign in to comment.