[Bug 1612] Recent change to rtems/cpukit/libcsupport/src/freenode.c breaks socket use

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Wed Jul 14 15:01:24 UTC 2010


https://www.rtems.org/bugzilla/show_bug.cgi?id=1612

Joel Sherrill <joel.sherrill at oarcorp.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joel.sherrill at oarcorp.com
          Component|filesystem                  |networking
         AssignedTo|chrisj at rtems.org            |norume at aps.anl.gov

--- Comment #13 from Joel Sherrill <joel.sherrill at oarcorp.com> 2010-07-14 10:01:23 CDT ---
It is borderline but more networking.  Grr.. 

This is the patch for libio_sockets.c.  The loopback test now works so I
think this is a proper fix.

I have committed this.  Please confirm the head now works for you.  Then close
this PR.

Index: libcsupport/src/libio_sockets.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libcsupport/src/libio_sockets.c,v
retrieving revision 1.14
diff -u -r1.14 libio_sockets.c
--- libcsupport/src/libio_sockets.c    28 Jun 2010 23:12:10 -0000    1.14
+++ libcsupport/src/libio_sockets.c    14 Jul 2010 14:59:40 -0000
@@ -71,5 +71,7 @@
   iop->data0 = fd;
   iop->data1 = so;
   iop->handlers = h;
+  iop->pathinfo.handlers = rtems_filesystem_root.handlers;
+  iop->pathinfo.ops = rtems_filesystem_root.ops;
   return fd;
 }

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list