Commit 0fd5a277 authored by Pierre-Hugues Husson's avatar Pierre-Hugues Husson

If out file is not specified, assume outfile = policy

parent 8eef2818
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment