Fossil SCM
Improved comment on the db_obscure() routine. No functional code changes.
Commit
aa1a0b31e200a7feb18b5ead30fbfc7a0628f5507e95571abf8a9833217e21cb
Parent
41ba6ea7db6ce2c…
1 file changed
+6
M
src/db.c
+6
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -1381,10 +1381,16 @@ | ||
| 1381 | 1381 | ** you don't need to use 'fossil sql' for that anyway. Just call |
| 1382 | 1382 | ** |
| 1383 | 1383 | ** fossil user pass monkey123 |
| 1384 | 1384 | ** |
| 1385 | 1385 | ** to change the local user entry's password in the same way. |
| 1386 | +** | |
| 1387 | +** 2022-12-30: If the user-data pointer is not NULL, then operate | |
| 1388 | +** as unobscure() rather than obscure(). The obscure() variant of | |
| 1389 | +** this routine is commonly available. But unobscure is (currently) | |
| 1390 | +** only registered by the "fossil remote config-data --show-passwords" | |
| 1391 | +** command. | |
| 1386 | 1392 | */ |
| 1387 | 1393 | void db_obscure( |
| 1388 | 1394 | sqlite3_context *context, |
| 1389 | 1395 | int argc, |
| 1390 | 1396 | sqlite3_value **argv |
| 1391 | 1397 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1381,10 +1381,16 @@ | |
| 1381 | ** you don't need to use 'fossil sql' for that anyway. Just call |
| 1382 | ** |
| 1383 | ** fossil user pass monkey123 |
| 1384 | ** |
| 1385 | ** to change the local user entry's password in the same way. |
| 1386 | */ |
| 1387 | void db_obscure( |
| 1388 | sqlite3_context *context, |
| 1389 | int argc, |
| 1390 | sqlite3_value **argv |
| 1391 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1381,10 +1381,16 @@ | |
| 1381 | ** you don't need to use 'fossil sql' for that anyway. Just call |
| 1382 | ** |
| 1383 | ** fossil user pass monkey123 |
| 1384 | ** |
| 1385 | ** to change the local user entry's password in the same way. |
| 1386 | ** |
| 1387 | ** 2022-12-30: If the user-data pointer is not NULL, then operate |
| 1388 | ** as unobscure() rather than obscure(). The obscure() variant of |
| 1389 | ** this routine is commonly available. But unobscure is (currently) |
| 1390 | ** only registered by the "fossil remote config-data --show-passwords" |
| 1391 | ** command. |
| 1392 | */ |
| 1393 | void db_obscure( |
| 1394 | sqlite3_context *context, |
| 1395 | int argc, |
| 1396 | sqlite3_value **argv |
| 1397 |