Fossil SCM
Make the glob pattern for encrypted repositories a bit more strict.
Commit
980fdda64b30a1d7f4d50942ce7c9dc3ed27c096
Parent
60026ba3cbb99e4…
1 file changed
+1
-1
M
src/db.c
+1
-1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -882,11 +882,11 @@ | ||
| 882 | 882 | const char *zDbFile, /* Name of the database file */ |
| 883 | 883 | Blob *pKey /* Put the encryption key here */ |
| 884 | 884 | ){ |
| 885 | 885 | blob_init(pKey, 0, 0); |
| 886 | 886 | #if USE_SEE |
| 887 | - if( sqlite3_strglob("*efossil", zDbFile)==0 ){ | |
| 887 | + if( sqlite3_strglob("*.efossil", zDbFile)==0 ){ | |
| 888 | 888 | static char *zSavedKey = 0; |
| 889 | 889 | if( zSavedKey ){ |
| 890 | 890 | blob_set(pKey, zSavedKey); |
| 891 | 891 | }else{ |
| 892 | 892 | char *zPrompt = mprintf("\rencryption key for '%s': ", zDbFile); |
| 893 | 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 |
| --- 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 |