This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
[Patch]: fchdir
- From: "Pierre A. Humblet" <pierre at phumblet dot no-ip dot org>
- To: cygwin-patches at cygwin dot com
- Date: Thu, 03 Jun 2004 20:48:18 -0400
- Subject: [Patch]: fchdir
2004-06-04 Pierre Humblet <pierre.humblet@ieee.org>
* path.cc (fchdir): Pass the Posix path to chdir.
Index: path.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/path.cc,v
retrieving revision 1.315
diff -u -p -r1.315 path.cc
--- path.cc 2 Jun 2004 21:20:53 -0000 1.315
+++ path.cc 4 Jun 2004 00:50:05 -0000
@@ -3358,7 +3358,7 @@ fchdir (int fd)
int res;
cygheap_fdget cfd (fd);
if (cfd >= 0)
- res = chdir (cfd->get_win32_name ());
+ res = chdir (cfd->get_name ());
else
res = -1;