]> git.pld-linux.org Git - packages/bridge-utils.git/blame - bridge-utils-rootonly.patch
- new ver. 0.9.6 Use autoconf now, so Makefile patch removed, rootonly patch updated
[packages/bridge-utils.git] / bridge-utils-rootonly.patch
CommitLineData
1ea4b8bf
AM
1diff -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.042134 seconds and 4 git commands to generate.