aboutsummaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2026-04-29 18:36:43 +0200
committergrunfink <grunfink@comam.es>2026-04-29 18:36:43 +0200
commit9c033f452e9a07eb2bdedc51648269e5d285491b (patch)
tree9a8b678b00866a835d63663cf8ed18d23a01f6e6 /utils.c
parent8e413311cebc482b70dc41a1ab1be1662362f878 (diff)
In adduser(), delete the (possible) grave.
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils.c b/utils.c
index 3f9d667..c36587a 100644
--- a/utils.c
+++ b/utils.c
@@ -369,6 +369,9 @@ int adduser(const char *uid)
fclose(f);
}
+ /* remove the grave */
+ grave(uid, 2);
+
printf("\nUser password is %s\n", pwd);
printf("\nGo to %s/%s and continue configuring your user there.\n", srv_baseurl, uid);