aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler_raw.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-05-17 09:32:45 +0000
committerCorinna Vinschen <corinna@vinschen.de>2002-05-17 09:32:45 +0000
commitd6dc98256cc93ef8da79c70ae73079659fcc7f8a (patch)
tree5f43a1f660baa8edb7e42e1d5c1db54f1794f945 /winsup/cygwin/fhandler_raw.cc
parent35a89cbe955bfdf96903497ffee364b4f522f4b0 (diff)
downloadnewlib-d6dc98256cc93ef8da79c70ae73079659fcc7f8a.zip
newlib-d6dc98256cc93ef8da79c70ae73079659fcc7f8a.tar.gz
newlib-d6dc98256cc93ef8da79c70ae73079659fcc7f8a.tar.bz2
* fhandler_raw.cc (fhandler_dev_raw::open): Replace set_errno()
by __seterrno_from_win_error(). * security.cc (open_local_policy): Ditto. (get_lsa_srv_inf): Ditto. (get_user_groups): Ditto. (get_user_primary_group): Ditto. (create_token): Ditto. (subauth): Ditto.
Diffstat (limited to 'winsup/cygwin/fhandler_raw.cc')
-rw-r--r--winsup/cygwin/fhandler_raw.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_raw.cc b/winsup/cygwin/fhandler_raw.cc
index 7cbbe0a..9486bf5 100644
--- a/winsup/cygwin/fhandler_raw.cc
+++ b/winsup/cygwin/fhandler_raw.cc
@@ -171,8 +171,7 @@ fhandler_dev_raw::open (path_conv *real_path, int flags, mode_t)
FILE_SYNCHRONOUS_IO_NONALERT);
if (!NT_SUCCESS (status))
{
- set_errno (RtlNtStatusToDosError (status));
- debug_printf ("NtOpenFile: NTSTATUS: %d, Win32: %E", status);
+ __seterrno_from_win_error (RtlNtStatusToDosError (status));
return 0;
}