From d63c2da552bc89c6748c31af651699b77fc1efe6 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 14 Mar 2008 20:43:28 +0000 Subject: * fcntl.cc (fcntl_worker): Protect with a 'myfault'. * path.cc (normalize_posix_path): Treat X:/ as Win32 path, too. * smallprint.cc (__wrn): New static function. (__small_vswprintf): New function to generate WCHAR strings. (__small_swprintf): Ditto. * winsup.h (__small_swprintf): Declare. (__small_vswprintf): Declare. --- winsup/cygwin/fcntl.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'winsup/cygwin/fcntl.cc') diff --git a/winsup/cygwin/fcntl.cc b/winsup/cygwin/fcntl.cc index b1f0d9972..f9a023ec4 100644 --- a/winsup/cygwin/fcntl.cc +++ b/winsup/cygwin/fcntl.cc @@ -18,12 +18,17 @@ details. */ #include "dtable.h" #include "cygheap.h" #include "thread.h" +#include "cygtls.h" int fcntl_worker (int fd, int cmd, void *arg) { int res; + myfault efault; + if (efault.faulted (EFAULT)) + return -1; + cygheap_fdget cfd (fd, true); if (cfd < 0) { -- cgit v1.2.3