]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/misc-progs/fireinfoctrl.c
fireinfo: Run action that was set on the webinterface immediately.
[people/pmueller/ipfire-2.x.git] / src / misc-progs / fireinfoctrl.c
CommitLineData
aebf1b54
MT
1/* IPFire helper program - fireinfoctrl\r
2 *\r
3 * This program is distributed under the terms of the GNU General Public\r
4 * Licence. See the file COPYING for details.\r
5 *\r
6 * (c) IPFire Team, 2011\r
7 *\r
8 * Simple program that calls "sendprofile" as the root user.\r
9 * \r
10 */\r
11 \r
12#include <stdlib.h>\r
13#include "setuid.h"\r
14\r
15int main(void)\r
16{\r
17 if (!(initsetuid()))\r
18 exit(1);\r
19 \r
20 safe_system("/usr/bin/sendprofile");\r
21 \r
22 return 0;\r
23}\r