Changeset - 55ea8f754512
[Not reviewed]
default
0 1 0
ethanzonca - 17 years ago 2009-03-15 19:45:24

Typo fix
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/client/distren.c
Show inline comments
 
@@ -17,49 +17,49 @@
 
  along with DistRen.  If not, see <http://www.gnu.org/licenses/>.
 
*/
 

	
 
#include <stdio.h> /* sprintf, printf */
 
#include <stdlib.h> /* malloc, free */
 
#include "options.h"
 
#include "execio.h"
 
#include <libxml/tree.h> /* Happy fun XML time */
 
#include <libxml/xmlwriter.h>
 

	
 

	
 

	
 
int main(int argc, char *argv[])
 
{
 

	
 

	
 
/* Mneh variable goodness */
 
int isusername;
 
char *host = "protofusion.org";
 
char *username = "guest";
 
char *nameemail;
 
/* */
 

	
 

	
 
/* put some code here to parse for a username, set username=0 if no username in the xml file or if no xml file exists. if no file, drop a warning */
 
/* put some code here to parse for a username, set isusername=0 if no username in the xml file or if no xml file exists. if no file, drop a warning */
 

	
 
if(isusername = 0){
 

	
 
char buf[10];
 
  struct execio *testrem;
 
  char *execargv[] =
 
    {
 
      "ssh",
 
      host,
 
      "sh",
 
      "-c",
 
      "\"useradd -M -c",
 
      nameemail,
 
      "-d /home/distren --gid 537",
 
      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)