[Patch]: fchdir
Pierre A. Humblet
pierre@phumblet.no-ip.org
Fri Jun 4 00:51:00 GMT 2004
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;
More information about the Cygwin-patches
mailing list