]> git.pld-linux.org Git - packages/bridge-utils.git/blob - bridge-utils-rootonly.patch
- new patch
[packages/bridge-utils.git] / bridge-utils-rootonly.patch
1 diff -urN bridge.org/brctl/brctld.c bridge/brctl/brctld.c
2 --- bridge.org/brctl/brctld.c   Tue Feb 22 00:26:59 2000
3 +++ bridge/brctl/brctld.c       Tue Feb 22 00:51:15 2000
4 @@ -163,6 +163,11 @@
5         int sock;
6         int x;
7  
8 +       if (getuid() != 0) {
9 +               fprintf(stderr, "must be run as root...\n");
10 +               return 1;
11 +       }
12 +               
13         if ((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
14                 perror("socket");
15                 return 1;
This page took 0.09249 seconds and 3 git commands to generate.