Revision: 14123
          http://edk2.svn.sourceforge.net/edk2/?rev=14123&view=rev
Author:   lpleahy
Date:     2013-02-08 21:26:46 +0000 (Fri, 08 Feb 2013)
Log Message:
-----------
Fix sockets use of file descriptors which was broken by the additional 
validation in StdLib/LibC/Uefi/SysCall.c/write added by revision 13989.

Signed-off-by: lpleahy

Revision Links:
--------------
    http://edk2.svn.sourceforge.net/edk2/?rev=13989&view=rev

Modified Paths:
--------------
    trunk/edk2/StdLib/BsdSocketLib/socket.c

Modified: trunk/edk2/StdLib/BsdSocketLib/socket.c
===================================================================
--- trunk/edk2/StdLib/BsdSocketLib/socket.c     2013-02-05 01:35:29 UTC (rev 
14122)
+++ trunk/edk2/StdLib/BsdSocketLib/socket.c     2013-02-08 21:26:46 UTC (rev 
14123)
@@ -146,7 +146,7 @@
     pDescriptor->f_flag = 0;
     pDescriptor->f_iflags = DTYPE_SOCKET;
     pDescriptor->MyFD = (UINT16)FileDescriptor;
-    pDescriptor->Oflags = 0;
+    pDescriptor->Oflags = O_RDWR;
     pDescriptor->Omode = S_ACC_READ | S_ACC_WRITE;
     pDescriptor->RefCount = 1;
     FILE_SET_MATURE ( pDescriptor );

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to