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:
Diffstat (limited to 'winsup/cygwin/fhandler_socket.cc')
-rw-r--r--winsup/cygwin/fhandler_socket.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc
index a5a13d064..a901dfd10 100644
--- a/winsup/cygwin/fhandler_socket.cc
+++ b/winsup/cygwin/fhandler_socket.cc
@@ -707,10 +707,7 @@ fhandler_socket::fchmod (mode_t mode)
{
fhandler_disk_file fh (pc);
fh.get_device () = FH_FS;
- int ret = fh.fchmod (adjust_socket_file_mode (mode));
- SetFileAttributesA (pc.get_win32 (),
- GetFileAttributesA (pc.get_win32 ())
- | FILE_ATTRIBUTE_SYSTEM);
+ int ret = fh.fchmod (S_IFSOCK | adjust_socket_file_mode (mode));
return ret;
}
set_errno (EBADF);