* 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.
This commit is contained in:
Corinna Vinschen
2008-05-22 11:18:46 +00:00
parent ae47b14a12
commit b72918135c
3 changed files with 49 additions and 28 deletions

View File

@@ -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))
{