From 85d088dda57cc49033a5748d34ab8873a37f6bc1 Mon Sep 17 00:00:00 2001 From: d_pocock Date: Thu, 28 Jan 2010 11:35:54 +0000 Subject: [PATCH] Support for AIX >= 6.1 (merge r2238) --- libmetrics/aix/metrics.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libmetrics/aix/metrics.c b/libmetrics/aix/metrics.c index f08965d44..8fd095735 100644 --- a/libmetrics/aix/metrics.c +++ b/libmetrics/aix/metrics.c @@ -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) { @@ -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;