Fossil SCM

In "fossil test-var-list --unset", lift the protection of the config table around the delete, which otherwise failed with an authorization error.

dmestas 2026-11-19 12:18 UTC small-fixes
Commit 6d6d6906b94c653f510a5ee946ba63f40752dc748306cb9c4496f99bd6b7887b
1 file changed +2
--- src/configure.c
+++ src/configure.c
@@ -1063,11 +1063,13 @@
10631063
}
10641064
db_finalize(&q);
10651065
if( zPattern && doUnset ){
10661066
prompt_user("Delete all of the above? (y/N)? ", &ans);
10671067
if( blob_str(&ans)[0]=='y' || blob_str(&ans)[0]=='Y' ){
1068
+ db_unprotect(PROTECT_CONFIG);
10681069
db_multi_exec("DELETE FROM config WHERE name GLOB %Q", zPattern);
1070
+ db_protect_pop();
10691071
}
10701072
blob_reset(&ans);
10711073
}
10721074
}
10731075
10741076
--- src/configure.c
+++ src/configure.c
@@ -1063,11 +1063,13 @@
1063 }
1064 db_finalize(&q);
1065 if( zPattern && doUnset ){
1066 prompt_user("Delete all of the above? (y/N)? ", &ans);
1067 if( blob_str(&ans)[0]=='y' || blob_str(&ans)[0]=='Y' ){
 
1068 db_multi_exec("DELETE FROM config WHERE name GLOB %Q", zPattern);
 
1069 }
1070 blob_reset(&ans);
1071 }
1072 }
1073
1074
--- src/configure.c
+++ src/configure.c
@@ -1063,11 +1063,13 @@
1063 }
1064 db_finalize(&q);
1065 if( zPattern && doUnset ){
1066 prompt_user("Delete all of the above? (y/N)? ", &ans);
1067 if( blob_str(&ans)[0]=='y' || blob_str(&ans)[0]=='Y' ){
1068 db_unprotect(PROTECT_CONFIG);
1069 db_multi_exec("DELETE FROM config WHERE name GLOB %Q", zPattern);
1070 db_protect_pop();
1071 }
1072 blob_reset(&ans);
1073 }
1074 }
1075
1076

Keyboard Shortcuts

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