From b72918135c4d863ef18a4a438cb8276b777cc0aa Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 22 May 2008 11:18:46 +0000 Subject: * path.cc (cygwin_conv_path): Define tp before setting up faul handler. * syscalls.cc: Ditto, throughout. (gen_full_path_at): Add bool parameter to allow NULL pathname. (futimesat): Allow NULL pathname as GLIBC. --- winsup/cygwin/path.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/path.cc') diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 58f0afde7..dd50f3d50 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -2799,12 +2799,12 @@ extern "C" ssize_t cygwin_conv_path (cygwin_conv_path_t what, const void *from, void *to, size_t size) { + tmp_pathbuf tp; myfault efault; if (efault.faulted (EFAULT)) return -1; path_conv p; - tmp_pathbuf tp; size_t lsiz = 0; char *buf = NULL; int error = 0; @@ -2935,11 +2935,11 @@ realpath (const char *path, char *resolved) /* Guard reading from a potentially invalid path and writing to a potentially invalid resolved. */ + tmp_pathbuf tp; myfault efault; if (efault.faulted (EFAULT)) return NULL; - tmp_pathbuf tp; char *tpath; if (isdrive (path)) { -- cgit v1.2.3