We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d6dad3 commit b8b6a02Copy full SHA for b8b6a02
src/main.cpp
@@ -35,6 +35,9 @@ int main(int argc, char **argv) {
35
exit(EX_USAGE);
36
};
37
38
+ auto euid = geteuid();
39
+ if (!euid) std::cerr << "!!!! WARNING: You should not execute this program with root privileges !!!!" << std::endl;
40
+
41
// establish signal handler
42
if (signal(SIGINT, sig_term_handler) || signal(SIGTERM, sig_term_handler)) {
43
perror("Failed to establish signal handler");
0 commit comments