Changeset 2731

Show
Ignore:
Timestamp:
06/06/07 17:42:32 (2 years ago)
Author:
tg
Message:

fix busybox httpd compile (PR#294) but don't close the PR yet

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/package/busybox/patches/310-passwd_access.patch

    r1904 r2731  
    1 diff -Nur busybox-1.4.1.orig/networking/httpd.c busybox-1.4.1/networking/httpd.c 
    2 --- busybox-1.4.1.orig/networking/httpd.c       2007-01-24 22:34:34.000000000 +0100 
    3 +++ busybox-1.4.1/networking/httpd.c    2007-02-05 11:05:12.000000000 +0100 
    4 @@ -1402,12 +1402,26 @@ 
     1--- busybox-1.4.2/networking/httpd.c.orig       Wed Jun  6 15:40:06 2007 
     2+++ busybox-1.4.2/networking/httpd.c    Wed Jun  6 15:41:11 2007 
     3@@ -1404,6 +1404,8 @@ static int checkPerm(const char *path, c 
    54                        if (ENABLE_FEATURE_HTTPD_AUTH_MD5) { 
    65                                char *cipher; 
     
    1110                                if (strncmp(p, request, u-request) != 0) { 
    1211                                        /* user uncompared */ 
     12@@ -1410,6 +1412,18 @@ static int checkPerm(const char *path, c 
    1313                                        continue; 
    1414                                } 
     
    2929                                                pp[3] == '$' && pp[4]) { 
    3030                                        pp++; 
    31 @@ -1506,6 +1520,10 @@ 
    32                                 sendHeaders(HTTP_NOT_IMPLEMENTED); 
    33                                 break; 
     31@@ -1418,6 +1432,10 @@ static int checkPerm(const char *path, c 
     32                                                goto set_remoteuser_var;   /* Ok */ 
     33                                        /* unauthorized */ 
     34                                        continue; 
     35+                               } 
     36+                               if (ppnew) { 
     37+                                       free(ppnew); 
     38+                                       ppnew = NULL; 
     39                                } 
    3440                        } 
    35 +                       if (ppnew) { 
    36 +                               free(ppnew); 
    37 +                               ppnew = NULL; 
    38 +                       } 
    39                 } 
    40  #else 
    41                 if (strcasecmp(buf, request_GET) != 0) { 
     41