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