* luci/libs: uvl: add support for external validation commands, various cleanups
[project/luci.git] / libs / sgi-webuci / boa-patches / 120-setuid_fix.patch
1 Index: boa-0.94.13/src/boa.c
2 ===================================================================
3 --- boa-0.94.13.orig/src/boa.c 2002-07-23 17:50:29.000000000 +0200
4 +++ boa-0.94.13/src/boa.c 2008-06-29 01:12:31.000000000 +0200
5 @@ -222,7 +222,7 @@
6 /* test for failed-but-return-was-successful setuid
7 * http://www.securityportal.com/list-archive/bugtraq/2000/Jun/0101.html
8 */
9 - if (setuid(0) != -1) {
10 + if ((server_uid != 0) && (setuid(0) != -1)) {
11 DIE("icky Linux kernel bug!");
12 }
13 } else {