Fossil SCM
Fix the SSH transport method so that it allows everything, without regard to user permissions.
Commit
a928c89cb187c3fc4275474c330cdf4e6a732710
Parent
af30a9ab4693f0d…
1 file changed
+3
-1
+3
-1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -1603,11 +1603,13 @@ | ||
| 1603 | 1603 | ** |
| 1604 | 1604 | ** COMMAND: test-http |
| 1605 | 1605 | ** Works like the http command but gives setup permission to all users. |
| 1606 | 1606 | */ |
| 1607 | 1607 | void cmd_test_http(void){ |
| 1608 | - login_set_capabilities("s", 0); | |
| 1608 | + login_set_capabilities("sx", 0); | |
| 1609 | + g.useLocalauth = 1; | |
| 1610 | + cgi_set_parameter("REMOTE_ADDR", "127.0.0.1"); | |
| 1609 | 1611 | g.httpIn = stdin; |
| 1610 | 1612 | g.httpOut = stdout; |
| 1611 | 1613 | find_server_repository(0); |
| 1612 | 1614 | g.cgiOutput = 1; |
| 1613 | 1615 | g.fullHttpReply = 1; |
| 1614 | 1616 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -1603,11 +1603,13 @@ | |
| 1603 | ** |
| 1604 | ** COMMAND: test-http |
| 1605 | ** Works like the http command but gives setup permission to all users. |
| 1606 | */ |
| 1607 | void cmd_test_http(void){ |
| 1608 | login_set_capabilities("s", 0); |
| 1609 | g.httpIn = stdin; |
| 1610 | g.httpOut = stdout; |
| 1611 | find_server_repository(0); |
| 1612 | g.cgiOutput = 1; |
| 1613 | g.fullHttpReply = 1; |
| 1614 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -1603,11 +1603,13 @@ | |
| 1603 | ** |
| 1604 | ** COMMAND: test-http |
| 1605 | ** Works like the http command but gives setup permission to all users. |
| 1606 | */ |
| 1607 | void cmd_test_http(void){ |
| 1608 | login_set_capabilities("sx", 0); |
| 1609 | g.useLocalauth = 1; |
| 1610 | cgi_set_parameter("REMOTE_ADDR", "127.0.0.1"); |
| 1611 | g.httpIn = stdin; |
| 1612 | g.httpOut = stdout; |
| 1613 | find_server_repository(0); |
| 1614 | g.cgiOutput = 1; |
| 1615 | g.fullHttpReply = 1; |
| 1616 |