Fossil SCM
Change default anonymous user perms for new repos from 'hmnc' to 'hz', per discussion at [forum:c6326072f3e6b270|forum post c6326072f3e6b270] and /chat.
Commit
ddabf09faa98e2c05d36f2c831a48a62928ae5f2e3e07afbaa74410aed8f0755
Parent
d3434fd8cc85d82…
1 file changed
+1
-1
M
src/db.c
+1
-1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -2728,11 +2728,11 @@ | ||
| 2728 | 2728 | " WHERE login=%Q", fossil_random_password(10), zUser |
| 2729 | 2729 | ); |
| 2730 | 2730 | if( !setupUserOnly ){ |
| 2731 | 2731 | db_multi_exec( |
| 2732 | 2732 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 2733 | - " VALUES('anonymous',hex(randomblob(8)),'hmnc','Anon');" | |
| 2733 | + " VALUES('anonymous',hex(randomblob(8)),'hz','Anon');" | |
| 2734 | 2734 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 2735 | 2735 | " VALUES('nobody','','gjorz','Nobody');" |
| 2736 | 2736 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 2737 | 2737 | " VALUES('developer','','ei','Dev');" |
| 2738 | 2738 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 2739 | 2739 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -2728,11 +2728,11 @@ | |
| 2728 | " WHERE login=%Q", fossil_random_password(10), zUser |
| 2729 | ); |
| 2730 | if( !setupUserOnly ){ |
| 2731 | db_multi_exec( |
| 2732 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 2733 | " VALUES('anonymous',hex(randomblob(8)),'hmnc','Anon');" |
| 2734 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 2735 | " VALUES('nobody','','gjorz','Nobody');" |
| 2736 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 2737 | " VALUES('developer','','ei','Dev');" |
| 2738 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 2739 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -2728,11 +2728,11 @@ | |
| 2728 | " WHERE login=%Q", fossil_random_password(10), zUser |
| 2729 | ); |
| 2730 | if( !setupUserOnly ){ |
| 2731 | db_multi_exec( |
| 2732 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 2733 | " VALUES('anonymous',hex(randomblob(8)),'hz','Anon');" |
| 2734 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 2735 | " VALUES('nobody','','gjorz','Nobody');" |
| 2736 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 2737 | " VALUES('developer','','ei','Dev');" |
| 2738 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 2739 |