Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-10-12 15:57:29 +0400
committerCorinna Vinschen <corinna@vinschen.de>2009-10-12 15:57:29 +0400
commitd358c9e9b084d4154a1cf994abfe9b9d09597b3d (patch)
tree8211ddf92fb0715a5fbbc2fe675cc96d7872a069 /winsup/cygwin/fhandler_socket.cc
parent2072888e66f0859bd7a0f77a5b24db4d3bdc6c34 (diff)
* fhandler_disk_file.cc (fhandler_disk_file::link): Only append .lnk
if the original device had one, too. Add comment. * fhandler_socket.cc (fhandler_socket::fstat): Always return a size of 0 on sockets.
Diffstat (limited to 'winsup/cygwin/fhandler_socket.cc')
-rw-r--r--winsup/cygwin/fhandler_socket.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc
index 30253f9e5..5f1ab2776 100644
--- a/winsup/cygwin/fhandler_socket.cc
+++ b/winsup/cygwin/fhandler_socket.cc
@@ -698,6 +698,7 @@ fhandler_socket::fstat (struct __stat64 *buf)
if (!res)
{
buf->st_mode = (buf->st_mode & ~S_IFMT) | S_IFSOCK;
+ buf->st_size = 0;
}
}
else
@@ -708,6 +709,7 @@ fhandler_socket::fstat (struct __stat64 *buf)
buf->st_dev = 0;
buf->st_ino = (__ino64_t) ((DWORD) get_handle ());
buf->st_mode = S_IFSOCK | S_IRWXU | S_IRWXG | S_IRWXO;
+ buf->st_size = 0;
}
}
return res;