Changeset - bd7fe8c34cb5
[Not reviewed]
default
0 1 0
ethanzonca - 16 years ago 2009-08-01 13:02:27

Fixes
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/server/slavefuncs.c
Show inline comments
 
@@ -179,13 +179,13 @@ int login_user(char *username)
 
  struct execio *testrem;
 
  char *execargv[] =
 
    {
 
      "ssh",
 

	
 
      "-i",
 
      SYSCONF "distren.id_rsa"
 
      SYSCONFDIR "distren.id_rsa"
 
      "-p",
 
      "23",
 
      (char *)NULL,// username and hostname
 
      "echo",
 
      "hello", // This should eventually open a non-terminating connection to the server for communication,
 

	
 
@@ -200,14 +200,14 @@ int login_user(char *username)
 

	
 
  strcpy(userhost, username);
 
  strcat(userhost, "@protofusion.org"); // Throws @protofusion.org after the username
 

	
 

	
 
  fprintf(stderr, "Logging you in to %s", userhost);
 
  if(fopen(SYSCONF "distren.id_rsa", "r") == NULL){
 
	  fprintf(stderr,"Your key, %s, has not been found! Re-register or somehow regenerate your key! We need a way to regenerate keys coded in, but we don't have the facilities yet!",userkey);
 
  if(fopen(SYSCONFDIR "distren.id_rsa", "r") == NULL){
 
	  fprintf(stderr,"Your key has not been found! Re-register or somehow regenerate your key! We need a way to regenerate keys coded in, but we don't have the facilities yet!");
 
	  return 0;
 
  }
 
  execio_open(&testrem, "ssh", execargv); // TODO: Grab returns from this someday
 
  buf[9] = '\0'; // null-terminating the array...
 
  while(!execio_read(testrem, buf, 9, &readlen))
 
    {
0 comments (0 inline, 0 general)