Fossil SCM

Fix the SSH transport method so that it allows everything, without regard to user permissions.

drh 2012-02-06 18:18 trunk
Commit a928c89cb187c3fc4275474c330cdf4e6a732710
1 file changed +3 -1
+3 -1
--- src/main.c
+++ src/main.c
@@ -1603,11 +1603,13 @@
16031603
**
16041604
** COMMAND: test-http
16051605
** Works like the http command but gives setup permission to all users.
16061606
*/
16071607
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");
16091611
g.httpIn = stdin;
16101612
g.httpOut = stdout;
16111613
find_server_repository(0);
16121614
g.cgiOutput = 1;
16131615
g.fullHttpReply = 1;
16141616
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button