Changeset - ac8cf7af18cd
[Not reviewed]
default
0 2 0
ethanzonca - 16 years ago 2009-07-31 23:49:38

Made slave die on failed registration
2 files changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/server/slave.c
Show inline comments
 
@@ -75,7 +75,8 @@ for(counter=0; counter<argc; counter++){
 
			fprintf(stderr,"Registration successfull. You may now invoke distrenslave with no arguments.\n");
 
		}
 
		else{
 
			fprintf(stderr,"Registration failed. Sorry!\n");
 
			fprintf(stderr,"Please try again! :D\n");
 
			return 0;
 
		}
 
	}
 
/* End arg parser */
src/server/slavefuncs.c
Show inline comments
 
@@ -42,7 +42,7 @@ int ssh_keygen(){
 
	struct stat buffer;
 
	status = stat(SYSCONFDIR "/distren.id_rsa", &buffer);
 
	if(status != -1){
 
		fprintf(stderr, "Please delete etc/distren.id_rsa and etc/distren.id_rsa.pub to register.");
 
		fprintf(stderr, "Please delete etc/distren.id_rsa and etc/distren.id_rsa.pub to register.\n");
 
		return 0;
 
	}
 

	
0 comments (0 inline, 0 general)