Fossil SCM

Make the glob pattern for encrypted repositories a bit more strict.

mistachkin 2016-04-25 04:13 trunk
Commit 980fdda64b30a1d7f4d50942ce7c9dc3ed27c096
1 file changed +1 -1
+1 -1
--- src/db.c
+++ src/db.c
@@ -882,11 +882,11 @@
882882
const char *zDbFile, /* Name of the database file */
883883
Blob *pKey /* Put the encryption key here */
884884
){
885885
blob_init(pKey, 0, 0);
886886
#if USE_SEE
887
- if( sqlite3_strglob("*efossil", zDbFile)==0 ){
887
+ if( sqlite3_strglob("*.efossil", zDbFile)==0 ){
888888
static char *zSavedKey = 0;
889889
if( zSavedKey ){
890890
blob_set(pKey, zSavedKey);
891891
}else{
892892
char *zPrompt = mprintf("\rencryption key for '%s': ", zDbFile);
893893
--- src/db.c
+++ src/db.c
@@ -882,11 +882,11 @@
882 const char *zDbFile, /* Name of the database file */
883 Blob *pKey /* Put the encryption key here */
884 ){
885 blob_init(pKey, 0, 0);
886 #if USE_SEE
887 if( sqlite3_strglob("*efossil", zDbFile)==0 ){
888 static char *zSavedKey = 0;
889 if( zSavedKey ){
890 blob_set(pKey, zSavedKey);
891 }else{
892 char *zPrompt = mprintf("\rencryption key for '%s': ", zDbFile);
893
--- src/db.c
+++ src/db.c
@@ -882,11 +882,11 @@
882 const char *zDbFile, /* Name of the database file */
883 Blob *pKey /* Put the encryption key here */
884 ){
885 blob_init(pKey, 0, 0);
886 #if USE_SEE
887 if( sqlite3_strglob("*.efossil", zDbFile)==0 ){
888 static char *zSavedKey = 0;
889 if( zSavedKey ){
890 blob_set(pKey, zSavedKey);
891 }else{
892 char *zPrompt = mprintf("\rencryption key for '%s': ", zDbFile);
893

Keyboard Shortcuts

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