projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2acfd0
)
wrote some comment lines describing the rescue code
author
Art Cancro
<ajc@citadel.org>
Wed, 14 Jun 2023 15:41:12 +0000
(06:41 -0900)
committer
Art Cancro
<ajc@citadel.org>
Wed, 14 Jun 2023 15:41:12 +0000
(06:41 -0900)
citadel/server/user_ops.c
patch
|
blob
|
history
diff --git
a/citadel/server/user_ops.c
b/citadel/server/user_ops.c
index 55cbf574a0e4df7ecbcda0a1abd176e3f3fe5032..f9a7f7146b28be03395b86b96d56cbe75688544c 100644
(file)
--- a/
citadel/server/user_ops.c
+++ b/
citadel/server/user_ops.c
@@
-1139,7
+1139,9
@@
int InitialMailCheck() {
}
-// Undocumented rescue mode
+// This is an undocumented rescue mode that can be used to rewrite an admin user account that has been corrupted.
+// To prevent abuse, it can only run as a one-shot when the server is not otherwise operational.
+// Don't use this without asking about it.
void undocumented_rescue_mode(char *rescue_string) {
struct ctdluser usbuf;
memset(&usbuf, 0, sizeof(struct ctdluser));