# HG changeset patch # User ethanzonca # Date 2009-07-31 19:37:38 # Node ID 52c827d07407812360241924da081f70f4c95889 # Parent b4705168fec321bc2b88a152ed25c94ec8058214 Added return check for conf_replace diff --git a/src/server/slavefuncs.c b/src/server/slavefuncs.c --- a/src/server/slavefuncs.c +++ b/src/server/slavefuncs.c @@ -121,8 +121,10 @@ int register_user(char *username, char * /* @TODO: Parse the output buffer or something to check when user creation fails due to duplicate users. This is pretty important. */ - - conf_replace(username); // puts the person's username in the conf + // puts the person's username in the conf + if(conf_replace(username) == 0){ + fprintf(stderr, "Failed!\n"); + } ssh_keygen(); // generates keys for login, @TODO: pub key must somehow be sent to the server. return 1;