Fossil SCM
The default user capability string for the test-http command — used by ssh:// URLs despite the "test-" prefix! — is now "sxy" to grant all permissions as claimed [/doc/trunk/www/caps/#webonly | in the docs]. While this is objectively correct, it doesn't solve the actual problem I was chasing, being UV sync failure over SSH per [forum:/forumpost/b121db582ee1ed2c | a recent forum post].
Commit
129e39587803da00f6bd23427b341ac7e13eb61caa97d860eeb5ae0c32c46f63
Parent
2e51bb9b03d6be8…
1 file changed
+2
-2
+2
-2
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -2735,11 +2735,11 @@ | ||
| 2735 | 2735 | ** |
| 2736 | 2736 | ** Works like the [[http]] command but gives setup permission to all users. |
| 2737 | 2737 | ** |
| 2738 | 2738 | ** Options: |
| 2739 | 2739 | ** --th-trace Trace TH1 execution (for debugging purposes) |
| 2740 | -** --usercap CAP User capability string (Default: "sx") | |
| 2740 | +** --usercap CAP User capability string (Default: "sxy`") | |
| 2741 | 2741 | ** |
| 2742 | 2742 | */ |
| 2743 | 2743 | void cmd_test_http(void){ |
| 2744 | 2744 | const char *zIpAddr; /* IP address of remote client */ |
| 2745 | 2745 | const char *zUserCap; |
| @@ -2746,11 +2746,11 @@ | ||
| 2746 | 2746 | |
| 2747 | 2747 | Th_InitTraceLog(); |
| 2748 | 2748 | zUserCap = find_option("usercap",0,1); |
| 2749 | 2749 | if( zUserCap==0 ){ |
| 2750 | 2750 | g.useLocalauth = 1; |
| 2751 | - zUserCap = "sx"; | |
| 2751 | + zUserCap = "sxy"; | |
| 2752 | 2752 | } |
| 2753 | 2753 | login_set_capabilities(zUserCap, 0); |
| 2754 | 2754 | g.httpIn = stdin; |
| 2755 | 2755 | g.httpOut = stdout; |
| 2756 | 2756 | fossil_binary_mode(g.httpOut); |
| 2757 | 2757 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2735,11 +2735,11 @@ | |
| 2735 | ** |
| 2736 | ** Works like the [[http]] command but gives setup permission to all users. |
| 2737 | ** |
| 2738 | ** Options: |
| 2739 | ** --th-trace Trace TH1 execution (for debugging purposes) |
| 2740 | ** --usercap CAP User capability string (Default: "sx") |
| 2741 | ** |
| 2742 | */ |
| 2743 | void cmd_test_http(void){ |
| 2744 | const char *zIpAddr; /* IP address of remote client */ |
| 2745 | const char *zUserCap; |
| @@ -2746,11 +2746,11 @@ | |
| 2746 | |
| 2747 | Th_InitTraceLog(); |
| 2748 | zUserCap = find_option("usercap",0,1); |
| 2749 | if( zUserCap==0 ){ |
| 2750 | g.useLocalauth = 1; |
| 2751 | zUserCap = "sx"; |
| 2752 | } |
| 2753 | login_set_capabilities(zUserCap, 0); |
| 2754 | g.httpIn = stdin; |
| 2755 | g.httpOut = stdout; |
| 2756 | fossil_binary_mode(g.httpOut); |
| 2757 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2735,11 +2735,11 @@ | |
| 2735 | ** |
| 2736 | ** Works like the [[http]] command but gives setup permission to all users. |
| 2737 | ** |
| 2738 | ** Options: |
| 2739 | ** --th-trace Trace TH1 execution (for debugging purposes) |
| 2740 | ** --usercap CAP User capability string (Default: "sxy`") |
| 2741 | ** |
| 2742 | */ |
| 2743 | void cmd_test_http(void){ |
| 2744 | const char *zIpAddr; /* IP address of remote client */ |
| 2745 | const char *zUserCap; |
| @@ -2746,11 +2746,11 @@ | |
| 2746 | |
| 2747 | Th_InitTraceLog(); |
| 2748 | zUserCap = find_option("usercap",0,1); |
| 2749 | if( zUserCap==0 ){ |
| 2750 | g.useLocalauth = 1; |
| 2751 | zUserCap = "sxy"; |
| 2752 | } |
| 2753 | login_set_capabilities(zUserCap, 0); |
| 2754 | g.httpIn = stdin; |
| 2755 | g.httpOut = stdout; |
| 2756 | fossil_binary_mode(g.httpOut); |
| 2757 |