]> git.ipfire.org Git - ipfire-2.x.git/blame - src/misc-progs/updxsetperms.c
binutils: update to 2.18.
[ipfire-2.x.git] / src / misc-progs / updxsetperms.c
CommitLineData
f17e1488
CS
1/* This file is part of the IPFire Firewall.
2 *
3 * This program is distributed under the terms of the GNU General Public
4 * Licence. See the file COPYING for details.
5 *
6 */
7
8#include <stdlib.h>
9#include <stdio.h>
10#include <string.h>
11#include <unistd.h>
12#include <sys/types.h>
13#include <fcntl.h>
14#include "setuid.h"
15
16int main(int argc, char *argv[]) {
17
18 if (!(initsetuid()))
19 exit(1);
20
21 if (argc > 1) {
22 fprintf(stderr, "\nNo argument should be given.\n");
23 exit(1);
24 }
25
26 safe_system("/etc/rc.d/init.d/squid setperms");
27 return 0;
28}