Then included patch fixes interoperability problems between big and
little-endian machines with updatesrv, updateclnt, and updatefetch. (the
ports gotten from rpc2portmap are being byteswapped)

I would appreciate this if someone could either includ this in the next
release or find a better way of handleing this.

--------------------------------------------------------------------------
| Troy Benjegerdes    |       [EMAIL PROTECTED]     |    [EMAIL PROTECTED]   |
|    Unix is user friendly... You just have to be friendly to it first.  |
| This message composed with 100% free software.    http://www.gnu.org   |
--------------------------------------------------------------------------
diff -ur coda-5.2.7/coda-src/update/updateclnt.cc 
coda-5.2.7.new/coda-src/update/updateclnt.cc
--- coda-5.2.7/coda-src/update/updateclnt.cc    Thu May 13 16:11:21 1999
+++ coda-5.2.7.new/coda-src/update/updateclnt.cc        Wed Jul  7 12:27:28 1999
@@ -536,7 +536,7 @@
            hid.Tag = RPC2_HOSTBYNAME;
            strcpy(hid.Value.Name, host);
            sid.Tag = RPC2_PORTBYINETNUMBER;
-           sid.Value.InetPortNumber = port;
+           sid.Value.InetPortNumber = htons(port);
            ssid.Tag = RPC2_SUBSYSBYID;
            ssid.Value.SubsysId= SUBSYS_UPDATE;
            dummy.SeqLen = 0;
diff -ur coda-5.2.7/coda-src/update/updatefetch.cc 
coda-5.2.7.new/coda-src/update/updatefetch.cc
--- coda-5.2.7/coda-src/update/updatefetch.cc   Thu May 13 16:11:22 1999
+++ coda-5.2.7.new/coda-src/update/updatefetch.cc       Wed Jul  7 12:30:42 1999
@@ -205,7 +205,7 @@
     hid.Tag = RPC2_HOSTBYNAME;
     strcpy(hid.Value.Name, host);
     sid.Tag = RPC2_PORTBYINETNUMBER;
-    sid.Value.InetPortNumber = port;
+    sid.Value.InetPortNumber = htons(port);
     ssid.Tag = RPC2_SUBSYSBYID;
     ssid.Value.SubsysId = SUBSYS_UPDATE;
     dummy.SeqLen = 0;
diff -ur coda-5.2.7/coda-src/update/updatesrv.cc 
coda-5.2.7.new/coda-src/update/updatesrv.cc
--- coda-5.2.7/coda-src/update/updatesrv.cc     Thu May 13 10:29:15 1999
+++ coda-5.2.7.new/coda-src/update/updatesrv.cc Wed Jul  7 12:27:28 1999
@@ -197,7 +197,7 @@
     }
     rc = portmapper_client_register_sqsh(portmapid, 
                                         (unsigned char *) "codaupdate", 
-                                        0, 17,  port1.Value.InetPortNumber);
+                                        0, 17,  ntohs(port1.Value.InetPortNumber));
 
     if ( rc ) {
            fprintf(stderr, "Cannot register with rpc2portmap; exiting, rc = %i \n", 
rc);

Reply via email to