This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]