commit 9c033f4
grunfink
·
2026-04-29 16:36:43 +0000 UTC
parent 8e41331
In adduser(), delete the (possible) grave.
M
data.c
+4,
-0
1@@ -3303,6 +3303,10 @@ int grave(const char *objid, int op)
2 }
3
4 break;
5+
6+ case 2: /** del **/
7+ unlink(fn);
8+ break;
9 }
10
11 return ret;
M
utils.c
+3,
-0
1@@ -369,6 +369,9 @@ int adduser(const char *uid)
2 fclose(f);
3 }
4
5+ /* remove the grave */
6+ grave(uid, 2);
7+
8 printf("\nUser password is %s\n", pwd);
9
10 printf("\nGo to %s/%s and continue configuring your user there.\n", srv_baseurl, uid);