From 1ec2e5213432c1f1eb11c73a9c79e927ee5b617e Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 4 Jul 2000 17:03:52 +0000 Subject: [PATCH] * security.cc (read_sd): Eliminate OemToChar. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/security.cc | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 1aecb1089..9f7fd7e0e 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2000-07-04 Kazuhiro Fujieda + + * security.cc (read_sd): Eliminate OemToChar. + Mon Jul 4 18:57:00 2000 Corinna Vinschen * poll.cc: New file. Implement `poll' system call. diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc index 2ce95894e..26fc2d1cb 100644 --- a/winsup/cygwin/security.cc +++ b/winsup/cygwin/security.cc @@ -487,9 +487,7 @@ read_sd(const char *file, PSECURITY_DESCRIPTOR sd_buf, LPDWORD sd_size) debug_printf("file = %s", file); DWORD len = 0; - char fbuf[PATH_MAX]; - OemToChar(file, fbuf); - if (! GetFileSecurity (fbuf, + if (! GetFileSecurity (file, OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION,