Block Running As Root
This commit is contained in:
parent
0e7a108a0a
commit
78e17d8c18
2
dependencies/glfw/src
vendored
2
dependencies/glfw/src
vendored
@ -1 +1 @@
|
||||
Subproject commit d3ede7b6847b66cf30b067214b2b4b126d4c729b
|
||||
Subproject commit da6713cd096a40a4512f468b34c189017e73f987
|
@ -129,6 +129,11 @@ static void run_zenity_and_set_env(const char *env_name, std::vector<std::string
|
||||
// Launch
|
||||
#define LIST_DIALOG_SIZE "400"
|
||||
int main(int argc, char *argv[]) {
|
||||
// Don't Run As Root
|
||||
if (getuid() == 0 || geteuid() == 0) {
|
||||
ERR("Don't Run As Root");
|
||||
}
|
||||
|
||||
// Pre-Bootstrap
|
||||
pre_bootstrap(argc, argv);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user