[BACK]Return to mytcpio.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx / plugin

Diff for /OpenXM/src/kan96xx/plugin/mytcpio.c between version 1.1 and 1.2

version 1.1, 1999/10/08 02:12:05 version 1.2, 1999/10/30 02:22:16
Line 1 
Line 1 
   /*  $OpenXM$ */
 #include <stdio.h>  #include <stdio.h>
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/socket.h>  #include <sys/socket.h>
Line 251  socketConnectWithPass(char *servername,int port,char *
Line 252  socketConnectWithPass(char *servername,int port,char *
   int m;    int m;
   fd = socketConnect(servername,port);    fd = socketConnect(servername,port);
   if (fd >= 0) {    if (fd >= 0) {
     m = write(fd,pass,strlen(pass));      m = write(fd,pass,strlen(pass)+1);
     if (m != strlen(pass)) {      if (m != strlen(pass)+1) {
       fprintf(TcpioError,"Fail to send password to fd=%d.\n",fd);        fprintf(TcpioError,"Fail to send password to fd=%d.\n",fd);
       return(-1);        return(-1);
     }      }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>