2010-05-31 23:31:50 +02:00
|
|
|
/*
|
|
|
|
Copyleft (ɔ) 2009 Kernc
|
|
|
|
This program is free software. It comes with absolutely no warranty whatsoever.
|
|
|
|
See COPYING for further information.
|
|
|
|
|
|
|
|
Project homepage: http://code.google.com/p/logkeys/
|
|
|
|
*/
|
|
|
|
|
2010-04-22 21:36:22 +02:00
|
|
|
#include <cstdlib>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
setuid(0);
|
|
|
|
exit(system(SYS_CONF_DIR "/logkeys-start.sh")); // SYS_CONF_DIR defined in CXXFLAGS in Makefile.am
|
|
|
|
}
|