Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-09-10 22:51:44 +0400
committerCorinna Vinschen <corinna@vinschen.de>2010-09-10 22:51:44 +0400
commit396561aa0b5a2b220920ce515799d5a35b03a8cc (patch)
treed3c1a79dabfc0cf63c088a89e874a96038521191 /winsup/cygwin/syscalls.cc
parent4e8f539f158b9d3413d0b88ce2fb8f70733139d8 (diff)
* syscalls.cc (fstatat): Call stat_worker directly from here.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 2d0cdc36c..5c1ec504b 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -4153,7 +4153,10 @@ fstatat (int dirfd, const char *pathname, struct __stat64 *st, int flags)
char *path = tp.c_get ();
if (gen_full_path_at (path, dirfd, pathname))
return -1;
- return (flags & AT_SYMLINK_NOFOLLOW) ? lstat64 (path, st) : stat64 (path, st);
+ path_conv pc (path, ((flags & AT_SYMLINK_NOFOLLOW)
+ ? PC_SYM_NOFOLLOW : PC_SYM_FOLLOW)
+ | PC_POSIX | PC_KEEP_HANDLE, stat_suffixes);
+ return stat_worker (pc, st);
}
extern int utimens_worker (path_conv &, const struct timespec *);