diff options
| author | grunfink <grunfink@comam.es> | 2026-04-29 18:36:43 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2026-04-29 18:36:43 +0200 |
| commit | 9c033f452e9a07eb2bdedc51648269e5d285491b (patch) | |
| tree | 9a8b678b00866a835d63663cf8ed18d23a01f6e6 | |
| parent | 8e413311cebc482b70dc41a1ab1be1662362f878 (diff) | |
In adduser(), delete the (possible) grave.
| -rw-r--r-- | data.c | 4 | ||||
| -rw-r--r-- | utils.c | 3 |
2 files changed, 7 insertions, 0 deletions
@@ -3303,6 +3303,10 @@ int grave(const char *objid, int op) } break; + + case 2: /** del **/ + unlink(fn); + break; } return ret; @@ -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); |