]>
Commit | Line | Data |
---|---|---|
12938118 MT |
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. | |
66c36198 | 9 | * |
12938118 | 10 | */ |
66c36198 | 11 | |
12938118 MT |
12 | #include <stdlib.h> |
13 | #include "setuid.h" | |
14 | ||
15 | int main(void) | |
16 | { | |
17 | if (!(initsetuid())) | |
18 | exit(1); | |
66c36198 | 19 | |
12938118 | 20 | safe_system("/usr/bin/sendprofile"); |
66c36198 | 21 | |
12938118 MT |
22 | return 0; |
23 | } |