summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524>2013-02-08 21:26:46 +0000
committerlpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524>2013-02-08 21:26:46 +0000
commit3cdb02f964241fe8f2f1c8d286108606ef54e4dd (patch)
tree53167a1eaf02b398f742e95b0dc685aacbe98d9c
parent782e407aade3b8eab2a81ac3e2fd161c608c942c (diff)
downloadedk2-platforms-3cdb02f964241fe8f2f1c8d286108606ef54e4dd.tar.xz
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 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14123 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--StdLib/BsdSocketLib/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/StdLib/BsdSocketLib/socket.c b/StdLib/BsdSocketLib/socket.c
index 4f49777b51..6b00f41f40 100644
--- a/StdLib/BsdSocketLib/socket.c
+++ b/StdLib/BsdSocketLib/socket.c
@@ -146,7 +146,7 @@ BslSocketProtocolToFd (
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 );