-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print profile names in "oscap info" #781
Conversation
Example output:
|
Could you add |
What if the profile doesn't have any title? |
Along with profile IDs, profile names will be also displayed.
I have added |
@yuumasato @WesleyCeraso @mpreisler Any volunteer for review? 😄 |
Seems good to me. |
utils/oscap-info.c
Outdated
oscap_text_iterator_free(title_it); | ||
printf("%s\tTitle: %s\n", prefix, profile_title); | ||
free(profile_title); | ||
printf("%s\t\tId: %s%s\n", prefix, | ||
xccdf_profile_get_abstract(prof) ? "(abstract) " : "", | ||
xccdf_profile_get_id(prof)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is going to say Id: (abstract) xccdf_profile_....
which may not be what you were going for.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I'll swap that.
I have improved the output so that it's going to say |
Along with profile IDs, profile names will be also displayed.
Releated to #685