mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-22 17:41:00 +00:00
If out file is not specified, assume outfile = policy
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user