From: Ken Brown <kbrown@cornell.edu>
To: cygwin-patches@cygwin.com
Subject: [PATCH 0/7] Fix some system calls on sockets
Date: Thu, 25 Feb 2021 17:48:05 -0500 [thread overview]
Message-ID: <20210225224812.61523-1-kbrown@cornell.edu> (raw)
Several of the fhandler_socket_local and fhandler_socket_unix methods
that support system calls are written as though they are operating on
socket files unless the socket is an abstract socket. This patchset
(except for the last patch) attempts to fix this by checking whether
the fhandler is associated with a socket file. If not, we call an
fhandler_socket_wsock or fhandler_socket method instead of an
fhandler_disk_file method.
The last patch is just a code simplification that arose while I was
working on fhandler_socket_local::link.
Ken Brown (7):
Cygwin: fix fstat on sockets that are not socket files
Cygwin: fix fstatvfs on sockets that are not socket files
Cygwin: fix fchmod on sockets that are not socket files
Cygwin: fix fchown on sockets that are not socket files
Cygwin: fix facl on sockets that are not socket files
Cygwin: fix linkat(2) on sockets that are not socket files
Cygwin: simplify linkat with AT_EMPTY_PATH
winsup/cygwin/fhandler_socket_local.cc | 39 +++++++++++++-----
winsup/cygwin/fhandler_socket_unix.cc | 56 ++++++++++++++++----------
winsup/cygwin/syscalls.cc | 24 +++++++----
3 files changed, 81 insertions(+), 38 deletions(-)
--
2.30.0
next reply other threads:[~2021-02-25 22:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-25 22:48 Ken Brown [this message]
2021-02-25 22:48 ` [PATCH 1/7] Cygwin: fix fstat on sockets that are not socket files Ken Brown
2021-02-25 22:48 ` [PATCH 2/7] Cygwin: fix fstatvfs " Ken Brown
2021-02-25 22:48 ` [PATCH 3/7] Cygwin: fix fchmod " Ken Brown
2021-02-25 22:48 ` [PATCH 4/7] Cygwin: fix fchown " Ken Brown
2021-02-25 22:48 ` [PATCH 5/7] Cygwin: fix facl " Ken Brown
2021-02-25 22:48 ` [PATCH 6/7] Cygwin: fix linkat(2) " Ken Brown
2021-02-25 22:48 ` [PATCH 7/7] Cygwin: simplify linkat with AT_EMPTY_PATH Ken Brown
2021-03-01 12:31 ` [PATCH 0/7] Fix some system calls on sockets Corinna Vinschen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210225224812.61523-1-kbrown@cornell.edu \
--to=kbrown@cornell.edu \
--cc=cygwin-patches@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).