Files
bpfire/src/misc-progs/wiohelper.c
Stephan Feddersen via Development a25c95b3a0 WIO: Update to Version 1.3.2 several changes in many files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-03-09 15:39:48 +00:00

32 lines
770 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-2018 Stephan Feddersen <sfeddersen@ipfire.org>
*
* 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;
}