mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-02 19:52:03 +00:00
libselinux/semodule: Improve extracting message
The code doesn't check the default priority, it just looks for the highest. Fixes: # semodule -E testmodule Module 'testmodule' does not exist at the default priority '400'. Extracting at highest existing priority '400'. Signed-off-by: Petr Lautrbach <plautrba@redhat.com> Acked-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
parent
85d0a069ce
commit
db3863d551
@ -452,8 +452,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
semanage_module_info_get_priority(sh, extract_info, &curr_priority);
|
||||
printf("Module '%s' does not exist at the default priority '%d'. "
|
||||
"Extracting at highest existing priority '%d'.\n", mode_arg, priority, curr_priority);
|
||||
printf("Extracting at highest existing priority '%d'.\n", curr_priority);
|
||||
priority = curr_priority;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user