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>2007-08-16 19:07:42 +0400
committerCorinna Vinschen <corinna@vinschen.de>2007-08-16 19:07:42 +0400
commit29992bf3dad77669ffbedd92d3075a5fb1b1a1ae (patch)
tree6328ddc2468de168a4eddfe061babb84177fd960 /winsup/cygwin/fhandler_socket.cc
parent29fec364c0ccf362af6cc232dbc2f3cbf3ec877e (diff)
* path.h (path_conv::operator char *): Delete.
(path_conv::operator const char *): Delete. * dlfcn.cc: Throughout, replace path_conv::operator char * and path_conv::operator const char * by call to path_conv::get_win32 for easier transition to UNICODE_PATHs. * fhandler_socket.cc: Ditto. * hookapi.cc: Ditto. * path.cc: Ditto. * spawn.cc: Ditto. * syscalls.cc: Ditto. * uinfo.cc: Ditto.
Diffstat (limited to 'winsup/cygwin/fhandler_socket.cc')
-rw-r--r--winsup/cygwin/fhandler_socket.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc
index 44002c5eb..a5a13d064 100644
--- a/winsup/cygwin/fhandler_socket.cc
+++ b/winsup/cygwin/fhandler_socket.cc
@@ -708,7 +708,9 @@ 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));
- SetFileAttributes (pc, GetFileAttributes (pc) | FILE_ATTRIBUTE_SYSTEM);
+ SetFileAttributesA (pc.get_win32 (),
+ GetFileAttributesA (pc.get_win32 ())
+ | FILE_ATTRIBUTE_SYSTEM);
return ret;
}
set_errno (EBADF);