[gridftp-commit] CVS update: MODIFIED: gfork_plugin ...

John Bresnahan commit at globus.org
Thu Jun 14 16:25:34 CDT 2007


  User: bresnaha
  Date: 07/06/14 16:25:34

  Modified:    server/gfork_plugin Tag: gfork3 gfs_gfork_plugin.c
  Log:
  
  
  Revision  Changes    Path
  No                   revision
  
  http://viewcvs.globus.org/viewcvs.cgi/gridftp/server/gfork_plugin/Tag:
  No                   revision
  
  http://viewcvs.globus.org/viewcvs.cgi/gridftp/server/gfork_plugin/gfork3
  1.1.2.2   +12 -0     gridftp/server/gfork_plugin/Attic/gfs_gfork_plugin.c
  
  http://viewcvs.globus.org/viewcvs.cgi/gridftp/server/gfork_plugin/gfs_gfork_plugin.c.diff?r1=1.1.2.1&r2=1.1.2.2
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: gfs_gfork_plugin.c
  ===================================================================
  RCS file: /home/globdev/CVS/globus-packages/gridftp/server/gfork_plugin/Attic/gfs_gfork_plugin.c,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -b -r1.1.2.1 -r1.1.2.2
  --- gfs_gfork_plugin.c	12 Jun 2007 20:03:28 -0000	1.1.2.1
  +++ gfs_gfork_plugin.c	14 Jun 2007 21:25:34 -0000	1.1.2.2
  @@ -145,6 +145,8 @@
       globus_bool_t                       done;
       int                                 i;
       globus_reltime_t                    delay;
  +    uint32_t                            tmp_32;
  +    uint32_t                            converted_32;
       GFSGForkFuncName(gfs_l_gfork_read_cb);
   
       globus_mutex_lock(&g_mutex);
  @@ -179,6 +181,16 @@
                   ok = GLOBUS_TRUE;
               }
           }
  +
  +        /* registering client may not be same byte order */
  +        memcpy(&tmp_32, &buffer[AT_ONCE_NDX], sizeof(uint32_t));
  +        converted_32 = ntohl(tmp_32);
  +        memcpy(&buffer[AT_ONCE_NDX], &converted_32, sizeof(uint32_t));
  +
  +        memcpy(&tmp_32, &buffer[TOTAL_NDX], sizeof(uint32_t));
  +        converted_32 = ntohl(tmp_32);
  +        memcpy(&buffer[TOTAL_NDX], &converted_32, sizeof(uint32_t));
  +
           if(!ok)
           {
               goto error_cs;
  
  
  




More information about the gridftp-commit mailing list