Files
bpfire/src/misc-progs/wiohelper.c
Stephan Feddersen 0d6cc79d98 WIO: first addon release v1.3.1
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-08-15 11:45:46 +01:00

32 lines
760 B
C

/* wiohelper - a Who Is Online? Addon helper program
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* This program is distributed under the terms of the GNU General Public
* Licence. See the file COPYING for details.
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* IPFire.org - A linux based firewall
* Copyright (C) 2017 Stephan Feddersen <addons@h-loit.de>
*
* All Rights Reserved.
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Simple program intended to be installed setuid(0) that can be used from WIO
*
*/
#include "setuid.h"
int main(void)
{
if (!(initsetuid()))
exit(1);
safe_system("/var/ipfire/wio/wio.pl");
return 0;
}