Changeset - 6ef3e16151a5
[Not reviewed]
default
0 1 0
ethanzonca - 16 years ago 2009-07-25 01:33:04

Changed to TODO: for eclipse task manager :D
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/server/slavefuncs.c
Show inline comments
 
@@ -54,25 +54,25 @@ void registeruser(char *username, char *
 
  buf[9] = '\0'; // null-terminating the array...
 
  while(!execio_read(testrem, buf, 9, &readlen)) // What's with the readlen stuff?
 
    {
 
      if(readlen > 9) {
 
	fprintf(stderr, "!!!! Something is terribly wrong!\n");
 
      }
 
    buf[readlen] = '\0'; // Null-terminating the end of it again based on how large the data is?
 
    fprintf(stderr, "read \"%s\"\n", buf);
 
    }
 
  execio_close(testrem);
 

	
 
 exec('exec wget http://protofusion.org/distren/keys/%s',keyname); // Download the key
 
 /* Scan distrenslave.conf for !username and !key and replace them with "keyname" and the "username" */
 
 /* TODO: Scan distrenslave.conf for !username and !key and replace them with "keyname" and the "username" */
 

	
 
}
 

	
 

	
 
void loginuser(char *username){
 
  // Logs into sandboxed user on zserver2 as a client, currently does nothing
 
  char buf[10];
 
  struct execio *testrem;
 
  char *execargv[] =
 
    {
 
  "ssh",
 
  "username@protofusion.org", // username must be read from the conf
0 comments (0 inline, 0 general)