kernc / logkeys

:memo: :keyboard: A GNU/Linux keylogger that works!
Other
765 stars 253 forks source link

Fix --output flag and FLAG_TIMESTAMP_EVERY value #206

Closed theryangeary closed 5 years ago

theryangeary commented 5 years ago

First of all, change FLAG_TIMSTAMP_EVERY to not have the same value as FLAG_NO_DAEMON (I botched a merge conflict, my bad!)

Then, call daemon(3) with nochdir = 1 so that the daemon will maintain the PWD from which it started, and as a result the log file specified with the --output flag will be relative to that directory. Fixes #205

kernc commented 5 years ago

Thank you! 🙌