From b59f5795e69f5477b2be13e858dd1ee47e89b798 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 5 Feb 2019 15:20:50 +0100 Subject: [PATCH] Cygwin: proc fd: fix a copy/paste bug calling file_pathconv Signed-off-by: Corinna Vinschen --- winsup/cygwin/fhandler_process_fd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/fhandler_process_fd.cc b/winsup/cygwin/fhandler_process_fd.cc index 7d70ebe8d..4f326b69a 100644 --- a/winsup/cygwin/fhandler_process_fd.cc +++ b/winsup/cygwin/fhandler_process_fd.cc @@ -60,7 +60,7 @@ fhandler_process_fd::fetch_fh (HANDLE &out_hdl, uint32_t flags) return NULL; } size_t size; - void *buf = p->file_pathconv (fd, FFH_LINKAT, size); + void *buf = p->file_pathconv (fd, flags, size); if (size == 0) { set_errno (ENOENT);