Permission Manager: add permission management for screencopy (#9930)
This commit is contained in:
parent
642f394eb3
commit
260d8e1f71
13 changed files with 481 additions and 32 deletions
|
|
@ -192,7 +192,7 @@ void NCrashReporter::createAndSaveCrash(int sig) {
|
|||
#endif
|
||||
};
|
||||
u_int miblen = sizeof(mib) / sizeof(mib[0]);
|
||||
char exe[PATH_MAX] = "";
|
||||
char exe[PATH_MAX] = "/nonexistent";
|
||||
size_t sz = sizeof(exe);
|
||||
sysctl(mib, miblen, &exe, &sz, NULL, 0);
|
||||
const auto FPATH = std::filesystem::canonical(exe);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue