diff --git a/data.c b/data.c index 992a42f..7fb261c 100644 --- a/data.c +++ b/data.c @@ -3303,6 +3303,10 @@ int grave(const char *objid, int op) } break; + + case 2: /** del **/ + unlink(fn); + break; } return ret; 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);