diff --git a/src/server/slave.c b/src/server/slave.c --- a/src/server/slave.c +++ b/src/server/slave.c @@ -111,7 +111,7 @@ int main(int argc, char *argv[]) /* Notifies the user if there no username in .conf */ if(username == NULL || strcmp(username, "!username") == 0 ) fprintf(stderr, "\nPlease ensure that your username is present in distrenslave.conf\n"); - else + else if( username != NULL || strcmp(username, "!username") != 0 ) { // Log in the user @@ -132,13 +132,13 @@ int main(int argc, char *argv[]) fprintf(stderr, "Loading config (fasten your seatbelts for a SEGFAULT :-D )...\n"); - + fprintf(stderr, "Connecting to server...\n"); tmp = remoteio_open(&comm_slave, commonopts->remoteio, server); if(tmp) { - fprintf(stderr, "Error connecting to server; exitting\n"); + fprintf(stderr, "Error connecting to server; exiting\n"); return 1; }