Skip to content
Permalink
Browse files

Merge pull request #172 from nico202/dev

Process CLI args even without root
  • Loading branch information...
kernc committed Oct 3, 2017
2 parents 8d5b63b + 66a405b commit f818e112e45360030eb4bc8f98f6e112ce311aa9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/logkeys.cc
@@ -372,12 +372,12 @@ int main(int argc, char **argv)
{
on_exit(exit_cleanup, NULL);

if (geteuid()) error(EXIT_FAILURE, errno, "Got r00t?");

args.logfile = (char*) DEFAULT_LOG_FILE; // default log file will be used if none specified

process_command_line_arguments(argc, argv);

if (geteuid()) error(EXIT_FAILURE, errno, "Got r00t?");
// kill existing logkeys process
if (args.kill) kill_existing_process();

0 comments on commit f818e11

Please sign in to comment.
You can’t perform that action at this time.