diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-05-22 11:18:46 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-05-22 11:18:46 +0000 |
commit | b72918135c4d863ef18a4a438cb8276b777cc0aa (patch) | |
tree | 004fb965ddd194e4eaf6691ba5dd058d529e6deb /winsup/cygwin/path.cc | |
parent | ae47b14a12d21f7d4a506b5682308d2fe3f8a0ec (diff) | |
download | cygnal-b72918135c4d863ef18a4a438cb8276b777cc0aa.tar.gz cygnal-b72918135c4d863ef18a4a438cb8276b777cc0aa.tar.bz2 cygnal-b72918135c4d863ef18a4a438cb8276b777cc0aa.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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)) { |