]>
Commit | Line | Data |
---|---|---|
13398d5e | 1 | --- brctl/brctld.c.orig Fri Dec 7 15:23:31 2001 |
2 | +++ brctl/brctld.c Mon Mar 3 11:03:01 2003 | |
3 | @@ -161,6 +161,11 @@ | |
1ea4b8bf AM |
4 | int sock; |
5 | int x; | |
6 | ||
13398d5e | 7 | + if (getuid() != 0) { |
8 | + fprintf(stderr, "must be run as root...\n"); | |
9 | + return 1; | |
10 | + } | |
11 | + | |
1ea4b8bf AM |
12 | if ((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) { |
13 | perror("socket"); | |
14 | return 1; |