fireinfo: Run action that was set on the webinterface immediately.

This commit is contained in:
Michael Tremer
2011-01-04 00:30:14 +01:00
parent b0636ac576
commit aebf1b54e1
5 changed files with 31 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
/* IPFire helper program - fireinfoctrl
*
* This program is distributed under the terms of the GNU General Public
* Licence. See the file COPYING for details.
*
* (c) IPFire Team, 2011
*
* Simple program that calls "sendprofile" as the root user.
*
*/
#include <stdlib.h>
#include "setuid.h"
int main(void)
{
if (!(initsetuid()))
exit(1);
safe_system("/usr/bin/sendprofile");
return 0;
}