mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 05:53:00 +02:00
24 lines
444 B
C
24 lines
444 B
C
/* 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;
|
|
}
|