If out file is not specified, assume outfile = policy

This commit is contained in:
Pierre-Hugues Husson 2015-06-12 12:03:27 +02:00
parent 8eef2818fa
commit 0fd5a277ed

View File

@ -192,6 +192,9 @@ int main(int argc, char **argv)
if (((!source || !target || !class || !perm) && !permissive) || !policy)
usage(argv[0]);
if(!outfile)
outfile = policy;
sepol_set_policydb(&policydb);
sepol_set_sidtab(&sidtab);