mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 08:07:43 +00:00
If out file is not specified, assume outfile = policy
This commit is contained in:
parent
8eef2818fa
commit
0fd5a277ed
@ -192,6 +192,9 @@ int main(int argc, char **argv)
|
|||||||
if (((!source || !target || !class || !perm) && !permissive) || !policy)
|
if (((!source || !target || !class || !perm) && !permissive) || !policy)
|
||||||
usage(argv[0]);
|
usage(argv[0]);
|
||||||
|
|
||||||
|
if(!outfile)
|
||||||
|
outfile = policy;
|
||||||
|
|
||||||
sepol_set_policydb(&policydb);
|
sepol_set_policydb(&policydb);
|
||||||
sepol_set_sidtab(&sidtab);
|
sepol_set_sidtab(&sidtab);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user