--- a/usr/src/cmd/profiles/profiles.c Wed Jul 01 20:57:22 2009 -0700
+++ b/usr/src/cmd/profiles/profiles.c Thu Jul 02 15:13:49 2009 +0200
@@ -145,7 +145,7 @@
} else {
if (print_flag & PRINT_LONG) {
exec = getexecuser(username, KV_COMMAND,
- NULL, GET_ALL);
+ NULL, GET_ALL|__SEARCH_ALL_POLS);
print_profs_long(exec);
free_execattr(exec);
} else {
@@ -175,7 +175,8 @@
int profcnt = 0;
if (print_flag & PRINT_LONG) {
- exec = getexecuser(user->name, KV_COMMAND, NULL, GET_ALL);
+ exec = getexecuser(user->name, KV_COMMAND, NULL,
+ GET_ALL|__SEARCH_ALL_POLS);
if (exec == NULL) {
status = EXIT_NON_FATAL;
}