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].

wyoung 2021-07-23 19:35 trunk
Commit 129e39587803da00f6bd23427b341ac7e13eb61caa97d860eeb5ae0c32c46f63
1 file changed +2 -2
+2 -2
--- src/main.c
+++ src/main.c
@@ -2735,11 +2735,11 @@
27352735
**
27362736
** Works like the [[http]] command but gives setup permission to all users.
27372737
**
27382738
** Options:
27392739
** --th-trace Trace TH1 execution (for debugging purposes)
2740
-** --usercap CAP User capability string (Default: "sx")
2740
+** --usercap CAP User capability string (Default: "sxy`")
27412741
**
27422742
*/
27432743
void cmd_test_http(void){
27442744
const char *zIpAddr; /* IP address of remote client */
27452745
const char *zUserCap;
@@ -2746,11 +2746,11 @@
27462746
27472747
Th_InitTraceLog();
27482748
zUserCap = find_option("usercap",0,1);
27492749
if( zUserCap==0 ){
27502750
g.useLocalauth = 1;
2751
- zUserCap = "sx";
2751
+ zUserCap = "sxy";
27522752
}
27532753
login_set_capabilities(zUserCap, 0);
27542754
g.httpIn = stdin;
27552755
g.httpOut = stdout;
27562756
fossil_binary_mode(g.httpOut);
27572757
--- 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

Keyboard Shortcuts

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