Changeset - b6386c5628ba
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 16 years ago 2009-04-30 18:07:15
ohnobinki@ohnopublishing.net
fixed normal's spelling
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/client/distren.c
Show inline comments
 
@@ -71,25 +71,25 @@ int main(int argc, char *argv[])
 
  //strcat(username, hostname);
 

	
 

	
 
  if( i == 1 ){
 
    // Create new account on the server if no username exists
 
    // THIS no longer SEGFAULTS!! YAY
 
    char buf[10];
 
    struct execio *testrem;
 
    char *execargv[] =
 
      {
 
	"ssh",
 
	"username", //cfg_getstr(cfg, "username") . "@" . cfg_getstr(cfg, "hostname"),
 
	"-i guest.rsa", //yeaaaah enay better ideas?
 
	"-i guest.rsa", //yeaaaah any better ideas?
 
	"sh",
 
	"-c",
 
	"\"echo hello from ${HOSTNAME}\"", // "\"useradd -M -c" strcat( cfg_getstr(cfg, "name") cfg_getstr(cfg, "email")) "-d /home/distren --gid 537" cfg_getstr(cfg, "username") "\"",
 
	(char *)NULL
 
      };
 

	
 
    size_t readlen;
 
    fprintf(stderr, "execio madness is occuring!");
 
    fprintf(stderr, "execio_open returns %d\n", execio_open(&testrem, "ssh", execargv));
 
    buf[9] = '\0';
 
    while(!execio_read(testrem, buf, 9, &readlen))
 
      {
0 comments (0 inline, 0 general)