rp-pppoe/rp-pppoe-3.8-allow_root_use.patch

20 lines
610 B
Diff
Raw Permalink Normal View History

diff -Nru rp-pppoe-3.8.orig/gui/wrapper.c rp-pppoe-3.8/gui/wrapper.c
--- rp-pppoe-3.8.orig/gui/wrapper.c 2006-04-02 16:29:41.000000000 +0200
+++ rp-pppoe-3.8/gui/wrapper.c 2007-10-04 19:28:57.000000000 +0200
@@ -73,7 +73,6 @@
}
if (buf.st_mode & (S_IWGRP | S_IWOTH)) {
fprintf(stderr, "SECURITY ALERT: Root directory (/) writable by group or other\n");
- return 0;
}
/* Check each component */
@@ -98,7 +97,6 @@
if (buf.st_mode & (S_IWGRP | S_IWOTH)) {
fprintf(stderr, "SECURITY ALERT: '%s' writable by group or other\n",
path);
- return 0;
}
}
return 1;