newlib-cygwin/winsup
Ken Brown 8889d21010 Cygwin: fix fstatvfs on sockets that are not socket files
If fstatvfs(2) is called on an AF_LOCAL or AF_UNIX socket that is not
a socket file, the current code calls fhandler_disk_file::fstatvfs in
most cases.  The latter expects to be operating on a disk file and
uses the socket's io_handle, which is not a file handle.

Fix this by calling fhandler_disk_file::fstatvfs only if the
fhandler_socket object is a socket file (determined by testing
dev().isfs()).
2021-02-25 17:23:33 -05:00
..
CVSChangeLogs.old winsup: Move all old CVS Changelogs into CVSChangeLogs.old dir 2016-03-19 13:59:52 +01:00
cygserver Cygwin: Remove recursive configure 2020-11-20 15:56:11 +00:00
cygwin Cygwin: fix fstatvfs on sockets that are not socket files 2021-02-25 17:23:33 -05:00
doc Cygwin: Add console fix regarding Ctrl-Z etc. to release notes. 2021-02-19 17:58:15 +01:00
testsuite Cygwin: testsuite: libltp: fix warnings showing up with -Wall 2020-12-02 14:12:56 +01:00
utils Cygwin: Fix remaining warnings building path testsuite 2020-12-02 15:31:58 +00:00
CONTRIBUTORS Cygwin: Add Ben Wijen to list of contributors 2021-01-18 12:01:19 +01:00
COPYING
COPYING.LIB Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout option 2016-06-23 10:09:17 +02:00
CYGWIN_LICENSE Clarify source file license in CYGWIN_LICENSE 2016-06-23 21:52:12 +02:00
Makefile.common Cygwin: Remove nostdlib Makefile variable 2020-10-21 17:11:02 +01:00
Makefile.in Cygwin: Remove recursive configure 2020-11-20 15:56:11 +00:00
README Fix typo and wrong URL in winsup/README 2016-05-24 10:25:18 +02:00
acinclude.m4 Cygwin: Remove recursive configure 2020-11-20 15:56:11 +00:00
aclocal.m4
autogen.sh Cygwin: Remove surplus autoconf auxiliary files 2020-11-20 15:56:21 +00:00
configure Cygwin: Remove recursive configure 2020-11-20 15:56:11 +00:00
configure.ac Cygwin: Remove recursive configure 2020-11-20 15:56:11 +00:00

README

THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESSED OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Cygwin documentation is available on the net at https://cygwin.com
You might especially be interested in

https://cygwin.com/faq/faq.html#faq.programming.building-cygwin