access () and path.cc

Pierre A. Humblet Pierre.Humblet@ieee.org
Fri Feb 28 04:59:00 GMT 2003


At 11:36 PM 2/27/2003 -0500, you wrote:
>Pierre,
>You and Corinna are giving me a headache.  :-)

My immediate access () problem can be fixed by replacing 
real_path by fn in the stat_worker call.

Problem #1 is a real bug, should be easy to fix, and may not
show up anywhere anyway, so not urgent.

Problems #2 & 3 can be solved by 
>For instance, wouldn't all this be alleviated just by using
>cfg->get_name() rather than cfg->get_win32_name in the stat functions?
at the expense of efficiency (most of the time).
But efficiency can be revisited after you integrate your changes.

BTW, I was looking at the path/fhandler code and came to the tentative
conclusion that it shouldn't be necessary to keep both a Windows path 
and a Unix path in the fhandler structures.
For the files understood by Windows, I think the Windows path is enough.
For the other files (most /dev, /proc), the Posix path should be OK.

Pierre



More information about the Cygwin-patches mailing list